Render stateless components and JSX to real DOM.
$ npm i understated --save
import {
h,
render
} from 'understated'
// tell babel to use h as the JSX pragma
/** @jsx h */
// create a component
const Component = props => (
<p className="content">{ props.text }</p>
)
// render it
render(
<Component text="A stateless component."/>,
document.body
)
- understated-cli - Create understated sites with no configuration.
MIT. © 2017 Michael Cavalea