-
Notifications
You must be signed in to change notification settings - Fork 651
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
Added alternative to findDOMNode #514
Added alternative to findDOMNode #514
Conversation
@silvenon any chance this PR can get reviewed? |
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.
How would I use this prop?
|
||
it('uses transitionNode when provided', () => { | ||
const onEnterSpy = jest.fn(); | ||
const transitionNode = document.createElement('span'); |
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.
But that is not the element that is transitioning. It should be the child of Transition
which is a div
in this case.
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.
should use ref
This is a good start to drop Good transitional release before upgrading code base to the next major release |
🎉 This issue has been resolved in version 4.4.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
This approach provides an alternative to
ReactDOM.findDOMNode
for those who would like to enableReact.StrictMode
without console errors fromreact-transition-group
.