React TutorialLesson 6Free preview
React Upgrade
This lesson is part of React · All levels
Summary
When the latest React version is released, your project can be updated by changing the version to package.json and running the npm install. Make sure the react and react-dom packets always have the same version so there is no runtime conflict. For major changes, read the release notes and run the codemod when available.
Key points
- Check the active version with npm list react
- Update react and react-dom simultaneously
- Npm install react@latest install the latest version
- Codemod helps to change old APIs automatically
Full lesson
Code examples and quizzes
Full lessons, code examples, and quizzes are available to subscribers. 5 questions.