PDA

View Full Version : What are Controlled Components?



adulistravel
04-30-2020, 08:12 PM
What are Controlled Components?

dennis123
05-01-2020, 12:03 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.