Chapter 8 · Practice 4 of 4
Upgrade React regularly and read the release notes
From Project hygiene
Why it matters
Small, frequent upgrades are easier than one big jump. React minor releases such as 19.3 add stable features, for example View Transitions and Fragment Refs, and fix bugs that may be affecting you.
For each upgrade:
- Read the release post and changelog.
- Run the official codemods when a release offers them.
- Update React and React DOM together and keep their versions in sync.
- Run your tests.
If you use a framework, upgrade through the framework, since it pins a compatible React version.
Do
- Check react.dev/versions for the latest release
- Upgrade React and React DOM in the same commit