dscript-deku
v1.0.0
Published
dscript with Deku setup done for you
Downloads
5
Maintainers
Readme
dscript-deku
Check out dscript for documentation on more advanced usage.
Install
npm install --save dscript-deku
Usage
import creator, {div, li, ul} from 'dscript-deku'
import customComponent from './custom-component'
const customComponentCreator = creator(customComponent)
const handleClick = () => alert('hi')
export default ({props}) =>
div('.list-container', {onClick: handleClick}, [
customComponentCreator({total: props.total}),
ul(
props.items.map(item =>
li([item.name])
)
)
])
LICENSE
MIT © Dustin Specker