how do i run a react project created in codepen?

create-react-app compiles all the code into one or many javascript files. You cannot do that in codepen. You can use codepen with pre-compiled react files but you won’t get what you would expect from create-react-app.

See this Hello World example: https://reactjs.org/redirect-to-codepen/hello-world

There are other sites like glitch.me, codesandbox.io where you can clone the repo of create-react-app and use the node environment.

CLICK HERE to find out more related problems solutions.

Leave a Comment

Your email address will not be published.

Scroll to Top