Skip to content

Label Bug in Forms and Refs Example #69

@nodes777

Description

@nodes777

Hi Rithm,

Love the material and have been to courses in person many times too. Thanks for the lessons!

Just wanted to point out a small bug. There's a label element in the 4th code example in the Forms and Refs page that lacks a for attribute pointing to the id input its labeling and isn't implicitly wrapping the input either.

<label>Enter your pin:</label> <input type="text" value={this.state.pin} onChange={this.handleChange} />

should be:

<label>Enter your pin: <input type="text" value={this.state.pin} onChange={this.handleChange} /> </label>

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions