0.0.2 • Published 6 years ago

understated v0.0.2

Weekly downloads
2
License
MIT
Repository
github
Last release
6 years ago

understated

understated on Travis understated on NPM understated Downloads on NPM Standard JavaScript Style

Render stateless components and JSX to real DOM.

Install

$ npm i understated --save

Use

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
)

License

MIT. © 2017 Michael Cavalea

0.0.2

6 years ago

0.0.1

7 years ago