Skip to content
This repository has been archived by the owner on Sep 11, 2024. It is now read-only.

⚛️ Upgrade to React@17 #6165

Merged
merged 3 commits into from
Jun 10, 2021
Merged

⚛️ Upgrade to React@17 #6165

merged 3 commits into from
Jun 10, 2021

Conversation

germain-gg
Copy link
Contributor

React 17 was released in October 2020, this pull request updates to this new major version

The reason for the upgrade is mostly to do with performance, especially around event delegation

However, for most events, React doesn’t actually attach them to the DOM nodes on which you declare them. Instead, React attaches one handler per event type directly at the document node. This is called event delegation. In addition to its performance benefits on large application trees, it also makes it easier to add new features like replaying events.

Summary of dependency changes

Name Old version New version
react 16.14.0 17.0.2
react-dom 16.14.0 17.0.2
react-test-renderer 16.14.0 17.0.2
enzyme-adapter-react-16 1.15.6 🔥
@wojtekmaj/enzyme-adapter-react-17 - 0.6.1

@germain-gg germain-gg requested review from a team and removed request for a team June 9, 2021 10:49
@germain-gg germain-gg marked this pull request as draft June 9, 2021 10:49
@germain-gg germain-gg marked this pull request as ready for review June 9, 2021 11:08
@germain-gg germain-gg requested a review from a team June 9, 2021 11:08
Copy link
Member

@dbkr dbkr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cautious 🎉

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants