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”.

Related questions

0 votes
asked Mar 30, 2020 in ReactJS by amita rallin
0 votes
asked Jan 31, 2021 in ReactJS by Robindeniel
...