0 votes
in ReactJS by
What are controlled components?

1 Answer

0 votes
by

A component that controls the input elements within the forms on subsequent user input is called Controlled Component, i.e, every state mutation will have an associated handler function.

For example, to write all the names in uppercase letters, we use handleChange as below,

handleChange(event) {

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

}

Related questions

0 votes
asked Jan 31, 2021 in ReactJS by Robindeniel
0 votes
asked Jan 31, 2021 in ReactJS by Robindeniel
...