tessellate-render
v0.1.0
Published
Tessellate render library.
Downloads
4
Readme
tessellate-render
Library that renders react components from a string.
Usage
import renderToString from 'tessellate-render'
const code = `
var React = require('react')
exports.Fragment = React.createClass({
render: function() {
return React.createElement('h1', null, this.props.text)
}
})`
const html = renderToString(code, {text: 'Hello, world!'})