shiyi-rax-server-renderer
v1.1.6
Published
Rax renderer for server-side render.
Downloads
2
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 />);