PDA

View Full Version : What are Controlled Components?



adulistravel
05-01-2020, 12:12 AM
What are Controlled Components?

sinelogixtech
05-01-2020, 04:58 AM
Hi,
A Controlled Component is one that takes its current value through props and notifies changes through callbacks like onChange . A parent component "controls" it by handling the callback and managing its own state and passing the new values as props to the controlled component.