Answers for "how to upgrade react version"

5

update react version

//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
Posted by: Guest on September-09-2020
1

how to update react app

//open terminal and run thsi code 
cd newreact
//where newreact is the old react app you created
//open package.json in text editor and change the version to latest
//open the same terminal gain and run this
npm install
Posted by: Guest on September-02-2020

Code answers related to "how to upgrade react version"

Code answers related to "Javascript"

Browse Popular Code Answers by Language