Server-side rendering for Nerv.js
npm install --save nerv-serverimport { renderToString } from 'nerv-server'
import { createElement, Component } from 'nervjs'
/** @jsx createElement */
const Foo = ({ visbility, children }) => (
<div class={{ visbility }}>{ children }</div>
)
const html = renderToString(
<Foo visbility={true}>
<span>bar</span>
</Foo>
)
console.log(html)
// <div class="visbility"><span>bar</span></div>