What are controlled components in react.js?

Answer

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

For example, If we write all the names in uppercase letters, we use handleChange.

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

All react js Questions

Ask your interview questions on react-js

Write Your comment or Questions if you want the answers on react-js from react-js Experts
Name* :
Email Id* :
Mob no* :
Question
Or
Comment* :
 





Disclimer: PCDS.CO.IN not responsible for any content, information, data or any feature of website. If you are using this website then its your own responsibility to understand the content of the website

--------- Tutorials ---