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

Use nodeRef in code examples #851

Merged
merged 2 commits into from
Sep 18, 2022
Merged

Use nodeRef in code examples #851

merged 2 commits into from
Sep 18, 2022

Conversation

silvenon
Copy link
Collaborator

@silvenon silvenon commented Sep 15, 2022

As continuously pointed out by issues like #668, #687 and #727 the documentation should recommend using nodeRef, so I updated all examples, including the CodeSandbox ones.

The docs don't work on Node versions 17+.
`ReactDOM.findDOMNode()` is deprecated in StrictMode.
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.

None yet

1 participant