0 votes
in ReactJS by
What are controlled and uncontrolled components in React?

1 Answer

0 votes
by

This relates to stateful DOM components (form elements) and the difference:

? A Controlled Componentis 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.

You could also call this a “dumb component”.

...