-
Notifications
You must be signed in to change notification settings - Fork 187
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
chore: Update way to check react version to switch to use react-dom/client #391
base: master
Are you sure you want to change the base?
Conversation
🦋 Changeset detectedLatest commit: 1daa6bd The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
@@ -157,13 +158,14 @@ export default ({ themes: allThemes, widths: allWidths, snippets }: Props) => { | |||
</div> | |||
<CSSTransition | |||
in={isOpen} | |||
nodeRef={nodeRef} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
To do this you dont need to use ReactDOM.findDOMNode
which is removed in react@19
https://github.com/reactjs/react-transition-group/blob/2989b5b87b4b4d1001f21c8efa503049ffb4fe8d/src/ReplaceTransition.js#L32-L35
Hi @felixhabib, I'm creating this to enhance its capacity with React/ReactDOM@19. Could you please have a look at this? The change in And here are the specific lines mentioning it: With these small updates, I can put react@19 in resolution in my project without any breaking changes. |
No description provided.