Skip to content

v0.1.0

Pre-release
Pre-release
Compare
Choose a tag to compare
@sergeysova sergeysova released this 29 May 23:34
· 94 commits to master since this release

The simple release allows reference to other components:

import {styled} from 'leafs'
import {h} from 'forest'

const Button = styled.button`
  color: red;
`

const Group = styled.div`
	${Button} {
		color: green;
	}
`

h('div', () => {
	Group({
		fn() {
			Button({ text: "I am green" })
		}
	})
	Button({ text: "I am red" })
})