rea
Javascript
code posted
created at 07 May 16:17
Edit
|
Back
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 |
var Counter = React.createClass({ props: { count: Props.number }, render: function() { return ( <div className="counterRoot"> {this.props.count} </div> ); } }); var root = document.getElementById('root'); React.renderComponent(<Counter count={5} />, root); |
293 Bytes in 2 ms with coderay