You get a bonus - 1 coin for daily activity. Now you have 1 coin

What are controlled components? in REACT

Practice



A component that controls form input elements as the user types is called a controlled component , i.e. every state mutation has an associated handler function.

For example, to write all names in capital letters we use handleChange as shown below,

handleChange(event) {
  this.setState({value: event.target.value.toUpperCase()})
}

Comments

To leave a comment

If you have any suggestion, idea, thanks or comment, feel free to write. We really value feedback and are glad to hear your opinion.
To reply

Lectures and tutorial on "Scripting client side JavaScript, jqvery, BackBone"

Terms: Scripting client side JavaScript, jqvery, BackBone