Skip to content

String refs are considered obsolete #444

Open
@quasiyoke

Description

@quasiyoke

There's an example of string refs in the book but official documentation is considering them as obsolete feature.

Instead of:

<input type="text" ref="input" />

We should write:

<input type="text" ref={el => this.input = el} />

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions