Skip to content

Remove or update use of refs #405

Closed
Closed
@levithomason

Description

@levithomason

See update below:

I'd like to remove as many use of refs as possible, and those that are 100% necessary should be callbacks.

Some components use a ref where they can likely use findDOMNode(this) instead. Regarding nested components, we have reliable markup and classNames to use. We should prefer findDOMNode(this).querySelector('...') to find nodes nested within ourselves. We should be able to remove most, if not all, use of refs in this way.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions