Starting the frontend projects with some React testing, but can’t render even a simple component. What am I doing wrong?
https://codepen.io/mcronline/pen/byjaOg
Thank you
Starting the frontend projects with some React testing, but can’t render even a simple component. What am I doing wrong?
https://codepen.io/mcronline/pen/byjaOg
Thank you
At the last line, React.render()
should be ReactDOM.render()
.
Then in your App
constructor, state
should be this.state
.