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