{"id":11879,"date":"2022-02-08T10:59:32","date_gmt":"2022-02-08T15:59:32","guid":{"rendered":"http:\/\/local.brightwhiz\/?post_type=snippets&p=11879"},"modified":"2022-02-08T10:59:33","modified_gmt":"2022-02-08T15:59:33","slug":"how-to-update-react-version","status":"publish","type":"snippets","link":"http:\/\/local.brightwhiz\/snippets\/how-to-update-react-version\/","title":{"rendered":"How to Update React Version With npm"},"content":{"rendered":"\n
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.<\/p>\n\n\n\n
$ npm update react<\/code><\/pre>\n\n\n\nYou can use this to upgrade major versions for example from 15.0.0 to 16.13.0.<\/p>\n\n\n\n
$ npm install --save react@latest<\/code><\/pre>\n","protected":false},"comment_status":"open","ping_status":"closed","template":"","meta":[],"categories":[953,15],"tags":[954,328,471,501],"yoast_head":"\nHow to Update React Version With npm<\/title>\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\t\n