You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
14 lines
316 B
14 lines
316 B
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')
|
|
);
|
|
|