2. Uncontrolled Component
Uncontrolled Components are the components that are not controlled by the React state and are handled by the DOM (Document Object Model). So in order to access any value that has been entered we take the help of refs.
Lets convert the Controlled component code to Uncontrolled component
Uncontrolled component also have some drawbacks as we have very limited control over its value, and very hard to debug.