user image

Preeti Tripathi

Job Interview Skills
English
2 years ago

31. Identify the distinction between React's Controlled and Uncontrolled components.

user image

Abhishek Mishra

2 years ago

In a controlled component, form data is handled by a React component. The alternative is uncontrolled components, where form data is handled by the DOM itself. To write an uncontrolled component, instead of writing an event handler for every state update, you can use a ref to get form values from the DOM.

Recent Doubts

Close [x]