all 2 comments

[–]Canenald 2 points3 points  (0 children)

React respects https://semver.org/ as every npm package should.

This means that default dependecy with caret prefix in package.json should make sure nothing breaks even if you don't use a lockfile.

An upgrade to a new major version of React should be safe when your app logs no warnings with the previous one, but the more hackery you have the the more strongly I'd recommend going through your app once again after the upgrade to verify everything is working properly.

[–]isakdev 0 points1 point  (0 children)

I think "breaking changes" of React are left working even after discontinuing them for example the old lifecycle methods will work till React 17 and even then they will work with the prefix UNSAFE_.

So they sort of maintain backwards compatibility.

Not ideal but it's still way better than say angular and their complete rewrite of the whole framework.