Home

Awesome

FRZR-dom

render FRZR on server side

installation

npm install frzr-dom

usage

var el = require('frzr').el;
var mount = require('frzr').mount;

var Document = require('frzr-dom').Document;
var render = require('frzr-dom').render;

...
var document = new Document();

mount(document.body, el('h1', 'Hello world!'));

console.log(render(document.body)); --> <body><h1>Hello world!</h1></body>