How to install react latest version

In this article let’s discuss about How to install react latest version. Let’s go through the following methods without any delay.

Method 1:

//Is used to update the version only such as 16.0.0 can be update to latest 16.13.0 but.. 
//but.. 15.0.0 can't be updated to 16.13.0 or to 16.0.0 with this
npm update react

//Use this to go from 15.0.0 to 16.13.0
npm install --save react@latest

If you are facing any issues with the above approach then try the alternative that is given below. It may look similar by have a try!

Method 2 :

npm install --save react@latest
//specific version
npm install --save react@16.0.0

Hope the above solution works.

Realted Posts : How to apply gitignore after commit