-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Feat: Enhance 'ContactForm' component with sessionStorage and:
- Add state for the form fields to be stored in session storage. - Separate 'validateInput' function from useEffect for multiple uses. - Add new function 'updateFormContent' to Update the form state and session storage. - Add useEffect with blur event listener on the form inputs. - Add useEffect to update inputs values based on session storage.
Showing
1 changed file
with
78 additions
and
18 deletions.
There are no files selected for viewing
This file contains 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