Created
October 9, 2025 19:07
-
-
Save jaySmilet/992cf79b3f98048bc804b0cf74308e2e to your computer and use it in GitHub Desktop.
Form Validation uncontrolled 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
| function handleSubmit() { | |
| if (inputRef.current.value.includes("@")) { | |
| // Valid email | |
| } else { | |
| // Invalid | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment