Hello, React!
; } }); ReactDOM.render( , document.getElementById('app') ); React Example 19 / 45Hello, React!
; } }); ReactDOM.render( , document.getElementById('app') ); React Example 20 / 45Hello, React!
; } }); ReactDOM.render( , // Set the Component... document.getElementById('app') ); React Example 21 / 45Hello, React!
; } }); ReactDOM.render( , // Set the Component document.getElementById('app') // to the element '#app' ); React Example 22 / 45Hello, React!
; } }); var Hello = React.createClass({ render: function () { returnHello, !
; } }); var World = React.createClass({ render: function () { return {this.props.name}; } }); 25 / 45Hello, !
; } }); var Hello = React.createClass({ getInitialState: function () { return { worldName: 'React state' }; }, render: function () { returnHello, !
; } }); 29 / 45Hello, !
; } }); 33 / 45