Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to downgrade React version 17 to 16?

Tags:

reactjs

How can I downgrade my React version from 17 to 16 as many of the React packages are not supported by React 17?

like image 792
Aditya Avatar asked Dec 22 '25 15:12

Aditya


1 Answers

Assuming you're using npm/yarn or another node package manager, dependency versions are listed in package.json.

Search for the react and react-dom packages under dependencies (or devDependencies) and replace their versions with 16.13.0. Then run npm install or yarn or whatever package manager you're using. This should be enough to downgrade to React 16.

If you have packages not compatible with React 16, you might have to downgrade them, too.

like image 173
Moritz Mahringer Avatar answered Dec 24 '25 03:12

Moritz Mahringer



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!