# TypeError: ReactDOM.render is not a functionIn codepen

**URL:** <https://forum.freecodecamp.org/t/typeerror-reactdom-render-is-not-a-functionin-codepen/355101>\
**Category:** General\
**Created:** [March 2, 2020, 4:26pm UTC](https://forum.freecodecamp.org/t/typeerror-reactdom-render-is-not-a-functionin-codepen/355101 "2020-03-02T16:26:12Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![codemonkey1](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/codemonkey1/32/132408_2.png) [@codemonkey1](https://forum.freecodecamp.org/u/codemonkey1)\
**Post date:** [March 2, 2020, 4:26pm UTC](https://forum.freecodecamp.org/t/typeerror-reactdom-render-is-not-a-functionin-codepen/355101/1 "2020-03-02T16:26:12Z")

</div>

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](https://codepen.io/codemonkey11/pen/RwPgOOG).

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.

---

<div class="post-metadata">

**Author:** ![lasjorg](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/lasjorg/32/280761_2.png) [@lasjorg](https://forum.freecodecamp.org/u/lasjorg)\
**Post date:** [March 2, 2020, 5:03pm UTC](https://forum.freecodecamp.org/t/typeerror-reactdom-render-is-not-a-functionin-codepen/355101/2 "2020-03-02T17:03:25Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![codemonkey1](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/codemonkey1/32/132408_2.png) [@codemonkey1](https://forum.freecodecamp.org/u/codemonkey1)\
**Post date:** [March 2, 2020, 5:31pm UTC](https://forum.freecodecamp.org/t/typeerror-reactdom-render-is-not-a-functionin-codepen/355101/3 "2020-03-02T17:31:13Z")

</div>

It worked! Thanks for the help.

---

<div class="post-metadata">

**Author:** ![ILM](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/ilm/32/363239_2.png) [@ILM](https://forum.freecodecamp.org/u/ILM)\
**Post date:** [June 1, 2021, 7:34pm UTC](https://forum.freecodecamp.org/t/typeerror-reactdom-render-is-not-a-functionin-codepen/355101/4 "2021-06-01T19:34:48Z")

</div>

Closed on June 1, 2021, 7:34pm UTC


