![]() ![]() The goal of this release is to enable gradual upgrades. We’ve postponed other changes until after React 17. We welcome demos using other tooling as pull requests. This demo uses Create React App, but it should be possible to follow a similar approach with any other tool. We’ve prepared an example repository demonstrating how to lazy-load an older version of React if necessary. However, for larger apps that aren’t actively maintained, this option makes sense to consider, and React 17 lets those apps not get left behind. Loading two versions of React - even if one of them is loaded lazily on demand - is still not ideal. For most apps, upgrading all at once is still the best solution. This doesn’t mean you have to do gradual upgrades. For example, you might decide to migrate most of your app to React 18, but keep some lazy-loaded dialog or a subroute on React 17. But you will also have an option to upgrade your app piece by piece. ![]() The first option will be to upgrade your whole app at once, like you might have done before. This means that when React 18 and the next future versions come out, you will now have more options. We’re fixing many of those problems with React 17. And while it’s possible to use two versions of React on the page, until React 17 this has been fragile and caused problems with events. But it can get increasingly challenging if the codebase was written more than a few years ago and isn’t actively maintained. When you upgrade from React 15 to 16 (or, this time, from React 16 to 17), you would usually upgrade your whole app at once. It also makes it easier to embed React into apps built with other technologies. In particular, React 17 is a “stepping stone” release that makes it safer to embed a tree managed by one version of React inside a tree managed by a different version of React. Instead, this release is primarily focused on making it easier to upgrade React itself. The React 17 release is unusual because it doesn’t add any new developer-facing features. This post is a brief summary of it, so if you’ve already read the RC post, you can skip this one. Today, we are releasing React 17! We’ve written at length about the role of the React 17 release and the changes it contains in the React 17 RC blog post. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |