$ npm install rax-server-renderer
Rax renderer for server-side render.
$ npm install --save rax-server-renderer
import {createElement, Component} from 'rax';
import renderer from 'rax-server-renderer';
class MyComponent extends Component {
render() {
return <div>Hello World</div>;
}
}
renderer.renderToString(<MyComponent />);
© 2010 - cnpmjs.org x YWFE | Home | YWFE