When I was trying to follow this documentation: https://reactjs.org/docs/add-react-to-a-website.html#optional-try-react-with-jsx
all worked fine until I replaced native JavaScript to JSX.
The missing step is to replace the line:
ReactDOM.render(e(LikeButton), domContainer);
with
ReactDOM.render(<LikeButton />, domContainer);
When I was trying to follow this documentation: https://reactjs.org/docs/add-react-to-a-website.html#optional-try-react-with-jsx
all worked fine until I replaced native
JavaScripttoJSX.The missing step is to replace the line:
ReactDOM.render(e(LikeButton), domContainer);with
ReactDOM.render(<LikeButton />, domContainer);