Upgrade Your React.js Project!
Let’s say you want to share one of your projects written a year ago with your pal (who happens to be a fellow developer). How would you update the project and ensure that it still runs securely and seamlessly?
A great place to start is within your package.json file.
The image above shows that the version of React in this project is out of date. To update the project, clone the repo, and open your package.json file in your preferred editor.
Typically, when you first clone a repo, you want to make sure the project will run successfully. Usenpm install
to download dependencies and npm start
to run the server.
If the project is out of date, you will probably see a bunch of errors and warnings returned that might look something like the image below: