react-xjst
v1.0.0
Published
react-xjst
Downloads
8
Readme
react-xjst
Virtual DOM provider for XJST.
Getting Started
Install the module with: npm install --save react-xjst
var React = require('react');
var ReactDOM = require('react-dom');
var xjstAdapter = require('react-xjst');
xjstAdapter.use(require('./templates.ddsl.js'), React);
class MyComponent extends React.Component {
render() {
return xjstAdapter.provide({
block: 'my-block'
});
}
}
ReactDOM.render(<MyComponent />, document.getElementById('root'));