Frontbackgeek.com
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.
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.