TypeError: ReactDOM.render is not a functionIn codepen

Hello problem solvers!

I’ve just completed (hopefully, haven’t run the tests yet) the Markdown Preview project. I did it locally and then transferred to codepen.

Here is the error I’m getting:
TypeError: ReactDOM.render is not a function

Has anyone run into this? Any suggestions?

If you do take a look and have any comments on my code please feel free to pass them along.


You need to switch the load order of the scripts. Load react first, then react-dom.

On the JS tab in the Codepen settings, you can grab the icon on the left of the script and drag its position up or down.


It worked! Thanks for the help.