By WalkingTree September 22, 2020
It has been more than 2 years since React came up with a new major release. The all-new React 17.0 is here but it doesn’t add any new features. Let’s take a look at React 17.0 and what are all the changes.
No new features
The React 17 release doesn’t add any new developer-facing features. Instead, this release is focused on making it easier to upgrade React itself. The React team is actively working on the new React features, but they’re not a part of this release. In other words, React 17.0 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.
What are the new changes in React 17.0?
- Event Delegation: In React 17, React will no longer attach event handlers at the document level. Instead, it will attach them to the root DOM container into which the React tree is rendered.
- No event pooling: React 17 removes the event pooling optimization. It doesn’t improve performance in modern browsers and confuses even experienced React users.
- Effect Cleanup Timing: The timing of the useEffect cleanup function is more consistent.
- Removing Private Exports: The private exports have been removed. React Native for Web was the only project using them, and they have already completed a migration to a different approach that doesn’t depend on private exports.
Read on to know more about the React 17.0 version.
We had a requirement to be able to indicate and provide feedback on a video in the form…
The rapid growth in technology is driving enterprises to modernize new apps, service delivery channels, and digital platforms….