bbsimonbb
bbsimonbb

Reputation: 29002

Upgrading react: is it really this simple?

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

Answers (1)

Evren
Evren

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

Related Questions