1.0.4 • Published 9 years ago
iso-app-renderer-react v1.0.4
iso-app-renderer-react
Renderer for react components in an isomorphic apps.
Installation
npm i --save iso-app-renderer-react
Usage
var app = require('iso-app');
var renderer = require('iso-app-renderer-react');
app().use(renderer());
API
new Renderer()
Create a new react renderer,
.attach(view, el)
Attach the view to the element and start updating the element when the view changes.
.detach()
Detach the view from the element and stop updating the element when the view changes.
.toHTML(view)
Render the view as a HTML string.
License
The MIT License (MIT)
Copyright (c) 2015 James Newell