Skip to content

Migrate from findDOMNode to refs #13221

Closed
@TrySound

Description

@TrySound

React team just finally announced deprecating findDOMNode.

facebook/react#13841

Would be good to start providing better refs in each component to get rid from RootRef.

Edit @eps1lon: Hijacking OP to document progress.

If we need the DOM node we still use findDOMNode but we call it with refs. If the refs are attached to host components you won't get a strict mode warning. Only if they are attached to class components.

Strict-mode ready findDOMNode

Metadata

Metadata

Assignees

Labels

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions