React Controlled Vs. Uncontrolled Component

We have two ways to handle the input value, the first one is the Controlled Component and the second is Uncontrolled component.

Code :