Frontbackgeek.com

Controlled  vs UnControlled Components in React JS

By Frontbackgeek

July 4, 2023

Inside a controlled component each of the elements has its own state, which helps to detect the changes and update the elements on User Interface.

Controlled Component

Opposite to controlled components, An uncontrolled component has direct access to the HTML elements and basically in react we achieve this by using useRef Hook. 

UnControlled Component