0.2.0 • Published 5 years ago

jsview-bootstrap v0.2.0

Weekly downloads
1
License
Apache-2.0
Repository
-
Last release
5 years ago

JsView Bootstrap

Application bootstrap for spring-jsview

Usage

    import bootstrap from "jsview-bootstrap"

    bootstrap( data => <App initial={ data } />)

bootstrap(render, cb)

The bootstrap module calls the render function with the jsview initial data payload and the render function returns the initial application element hierarchy. It can also return a promise resolving to a react element hierarchy.

The optional second function is called when the initial rendering has finished.