component is changing controlled input to be uncontrolled – Code Example
A controlled input is run by state. If this state gets undefined then the controlled input becomes uncontrolled and you will get the warning: A component is changing a controlled…