Why this doesn't work? I was following a youtube tutorial.
function Hello(props) {
return <div>Hello</div>;
}
ReactDOM.render(
Hello,
document.getElementById('entry')
);
Why this doesn't work? I was following a youtube tutorial.
function Hello(props) {
return <div>Hello</div>;
}
ReactDOM.render(
Hello,
document.getElementById('entry')
);
If you look at the JS console of that page you will see the following:
Following that link, the error page states
so instead of
you should do