0 votes
in ReactJS by
What are controlled components in ReactJS?

2 Answers

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()})
}
0 votes
by

Controlled components are component which controls the input elements.

Related questions

0 votes
asked Oct 29, 2023 in ReactJS by DavidAnderson
0 votes
asked Nov 4, 2023 in ReactJS by AdilsonLima
...