How to downgrade reactjs project

How to upgraded React 15 to 16

To do this, you need to issue the following command:

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

npm install --save react@^16.0.0 react-dom@^16.0.0​