Render a Rogain tree into html using string concatination. Useful for server rendering.
import tree from './template.json';
import data from './data.json';
document.body.innerHTML = renderToString(resolveTree(tree, data, options));
Renders a tree with a given set of properies.
tree
Object in Rogain tree format.
props
Object.
options
options.components
optional rogain-registry
instance. defines components used in resolution.
With npm do:
npm install rogain-render-string
MIT