Purpose of value=?

I am currently doing this challenge. What is the purpose of the



“<input value={this.state.input} onChange={this.handleChange}></input>” ?

When I take it out, the DOM still seems to be updating as the user types into the input bar.

Setting the value attribute is what makes it a controlled component.

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.