var HELLO_COMPONENT = ` var HelloMessage = React.createClass({ render: function() { return <div>Hello {this.props.name}</div>; } }); ReactDOM.render(<HelloMessage name="John" />, mountNode); `; ReactDOM.render( <ReactPlayground codeText={HELLO_COMPONENT} />, document.getElementById('helloExample') );