My React not working in Codepen

Link below

Try using the development version and look in the console at what the error message says.

<script crossorigin src="https://unpkg.com/react@17/umd/react.development.js"></script>
<script crossorigin src="https://unpkg.com/react-dom@17/umd/react-dom.development.js"></script>

Hint it has to do with your component naming

Finally worked, had to find my way around the render method thankyou for your contribution.

No problem.

I know Codepen gives you the production version by default when searching for React but it is better to use the development version when coding it and then use the production version just for deployment.

As an aside, I would also suggest checking out Codesandbox instead.

1 Like

Iā€™d do that, Thanks.

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.