Use ReactDOM.render(<Application />, document.getElementById('app'));
And use (
and )
when you need to return more than one line of JSX.
render() {
return (
<div>
<h1>Hello, ES6 and React 0.13!</h1>
<p>
More info <a href="https://github.com/bradleyboy/codepen-react" target="_blank">here</a>.
</p>
</div>)
Thank you for solving that
zdflower
but why isn’t React.render() working?
its working in this sample they gave
I always knew the ReactDOM way. Maybe the other was the way in the past, see the React version: 0.13. Now it is used the React 16.4.0
Thank you for your time
really appreciate it
1 Like