PDA

View Full Version : What are Controlled Components?



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

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