I upgraded from React 15.X to 16.X, but there are so many methods are no longer used, that result the application can’t work as expected. But the application linked with LOTS of old libraries which relay on 15.X. Is this possible to have both React version in the same application? Thanks.
You'll have to explicitly tell npm to go to the next major version.
npm install --save react@^16.0.0 react-dom@^16.0.0
then run
npm update --save
to get all dependent packages and latest updates for all your packages.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With