React 17 vs 18
Which should you run?
Pick React 18 for new installs. It has no end-of-life date yet, while 17 is supported until a date not yet announced.
17
18
20202027
Supported
Security fixes only
Today
| React 17 | React 18 | |
|---|---|---|
| Released | Oct 20, 2020 | Mar 29, 2022 |
| Status | Security Support | Security Support |
| Active support until | Mar 29, 2022 | Dec 5, 2024 |
| End of life | Not announced | Not announced |
| Total support | — | — |
| Latest version | 17.0.2 Mar 22, 2021 | 18.3.1 Apr 26, 2024 |
| LTS | No | No |
How to upgrade from React 17 to 18
npm
npm install react@18 react-dom@18 Official upgrade guide ↗ Back up first, and test on a non-production machine when you move to a new branch.
Quick answers
- Should I use React 17 or 18?
- Pick React 18 for new installs. It has no end-of-life date yet, while 17 is supported until a date not yet announced.
- How long are React 17 and 18 supported?
- React 17: no end-of-life date announced yet (security fixes only). React 18: no end-of-life date announced yet (security fixes only).
- What are the latest React 17 and 18 versions?
- React 17 is at 17.0.2 (Mar 22, 2021), and React 18 is at 18.3.1 (Apr 26, 2024).
More React comparisons
Official release policy · Checked 43 minutes ago