rithmschool/react_exercises

Label Bug in Forms and Refs Example

nodes777 opened this issue · 0 comments

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>