1.创建模板

ExampleApplication = React.createClass({render: function(return 'hi';){}})

2.实例化模板

ExampleApplicationFactory = React.createFactory(ExampleApplication)

3.模板渲染

Example = ExampleApplicationFactory()

4.模板输出

ReactDOM.render(Example,document.getElementById('container'))