A component is changing an uncontrolled input to be controlled
const Component = () => {
// Solution: Use an empty string (not undefined or null) for the default value.
const [name, setName] = useState("");
// other component code
}
A description of why is below:
One of the common challenges developers fa...
ruslanc.hashnode.dev3 min read