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 command to go to React JS 16 again
1 |
npm install --save react@^16.0.0 react-dom@^16.0.0 |