stakit-react
v0.1.0
Published
React renderer for Stakit
Downloads
3
Readme
stakit-react
React renderer for Stakit
Installation
npm i stakit-react
Example
var stakit = require('stakit')
var { render } = require('stakit-react')
var app = require('./app')
stakit()
.use(stakit.state({ name: 'world' }))
.routes(() => ['/'])
.render(render(app))
.output()
API
stakitReact.render(App)
Returns a Stakit renderer. App
will get the state as props.state
.