Created
October 10, 2025 02:40
-
-
Save jaySmilet/800502148b1d8f638365f0c0c34c0f04 to your computer and use it in GitHub Desktop.
Migration uncontrolled components to controlled components
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const [val, setVal] = useState(""); | |
| return ( | |
| <input value={val} onChange={e => setVal(e.target.value)} /> | |
| ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment