rax-server-renderer
v1.4.1
Published
Rax renderer for server-side render.
Downloads
2,019
Readme
rax-server-renderer
Rax renderer for server-side render.
Install
$ npm install --save rax-server-renderer
Usage
import {createElement, Component} from 'rax';
import renderer from 'rax-server-renderer';
class MyComponent extends Component {
render() {
return <div>Hello World</div>;
}
}
renderer.renderToString(<MyComponent />);