Reputation: 29002
I'm following this page to upgrade React on our just-released react app, project started last November, react currently sitting at 16.0.
So naively, I do npm install react react-dom
as suggested, and it bumps my React up to 16.14.0. So where is my React 18? Am I right to think I want the hottest, newest. What is the upgrade page not telling me?
Upvotes: 0
Views: 734
Reputation: 4410
Try latest
tag or giving directly the version that you want
npm install react@latest react-dom@latest
or
npm install react@^18.0.0 react-dom@^18.0.0
Upvotes: 2