Tag: npm
Create a production build using React JS
You probably saw some warnings that say you’re using React in development mode, and want to know how to create a production build using React. Why you get a warning of being in React development mode Normally you import React JS in your javascript ECMA 6 code with the following statements in a .js file … Continue reading “Create a production build using React JS”
How to downgrade from React JS 16 to 15
If you, as me, upgraded React 15 to 16, and then noticed a bug in you app, you’d like to downgrade, at least temporarily, to React 15. To do this, you need to issue the following command:
1 |
npm install --save react@15.6.2 react-dom@15.6.2 |
This will bring React to version 15.6.2 again. After fixing the bug, you can run the following … Continue reading “How to downgrade from React JS 16 to 15”