Skip to content
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

fix: remove deprecated findDOMNode #92

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

huwshimi
Copy link
Contributor

@huwshimi huwshimi commented Aug 14, 2024

Changes

Remove the deprecated findDOMNode method that will be removed in React 19. As far as I can see findDOMNode is designed to take class components and find the related element, but bindTo takes a reference to the element so I updated this to use the reference directly. Not sure if there are any cases where this would be insufficient.

I also upgraded to React 18 for the examples.

Fixes: #91.

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

Successfully merging this pull request may close these issues.

using bindTo gives findDOMNode error
1 participant