dscript-doc

dscript with doc-jsx setup done for you

Usage no npm install needed!

<script type="module">
  import dscriptDoc from 'https://cdn.skypack.dev/dscript-doc';
</script>

README

dscript-doc

NPM version Build Status Coverage Status

Code Climate Dependencies DevDependencies

dscript with doc-jsx setup done for you

Check out dscript for documentation on more advanced usage.

Install

npm install --save dscript-doc

Usage

import {div, li, ul} from 'dscript-doc'

const handleClick = () => alert('hi')

const component = (
  div('.list-container', {onClick: handleClick}, [
    ul([
      li(['task 1']),
      li(['task 2']),
      li(['task 3'])
    ])
  ])
)

LICENSE

MIT © Dustin Specker