Home  »  CodeSnippets   »   How to Update React Version With npm

How to Update React Version With npm

Posted: February 8, 2022 | by Michael Bright

This is used to update the version only such as 16.0.0 can be updated to 16.13.0 but 15.0.0 can’t be updated to 16.13.0 or to 16.0.0 with this command.

$ npm update react

You can use this to upgrade major versions for example from 15.0.0 to 16.13.0.

$ npm install --save react@latest

Found this article interesting? Follow Brightwhiz on Facebook, Twitter, and YouTube to read and watch more content we post.