How to setup codepen for React js
codepen is an online code editor and in this article we setup codepen for React JS, so that we can test our React code online on multiple devices. Follow the steps given bellow to Setup codepen for React JS.
1. Create A new Pen.
2. Click on Setting and than click on JavaScript tab.
3. For "JavaScript Preprocessor" choose "Babel".
4. In the "Add External Scripts/Pens" search bar type "react" and from the list choose "react", search again and this time choose "react-dom". or use these links
https://cdnjs.cloudflare.com/ajax/libs/react/16.8.6/umd/react.production.min.js
https://cdnjs.cloudflare.com/ajax/libs/react-dom/16.8.6/umd/react-dom.production.min.js
respectively
5. Click on "Save and Close" and you are ready
1. Create A new Pen.
2. Click on Setting and than click on JavaScript tab.
3. For "JavaScript Preprocessor" choose "Babel".
4. In the "Add External Scripts/Pens" search bar type "react" and from the list choose "react", search again and this time choose "react-dom". or use these links
https://cdnjs.cloudflare.com/ajax/libs/react/16.8.6/umd/react.production.min.js
https://cdnjs.cloudflare.com/ajax/libs/react-dom/16.8.6/umd/react-dom.production.min.js
respectively
5. Click on "Save and Close" and you are ready
Comments
Post a Comment