https://github.com/nairgh/useformstatus
useFormStatus Hook in React 19 Version
https://github.com/nairgh/useformstatus
react19 useformstatus vite
Last synced: about 1 month ago
JSON representation
useFormStatus Hook in React 19 Version
- Host: GitHub
- URL: https://github.com/nairgh/useformstatus
- Owner: nairgh
- Created: 2024-08-18T02:11:09.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2024-08-18T02:12:10.000Z (almost 2 years ago)
- Last Synced: 2025-02-02T11:46:09.657Z (over 1 year ago)
- Topics: react19, useformstatus, vite
- Language: JavaScript
- Homepage:
- Size: 49.8 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 1 - useActionState React -19 version
The useActionState hook in React 19 returns an array with exactly two items: The current state of the form, which is initially set to the initial state you provided, and after the form is submitted
To run give username as 'user' and password 'pass'
by using the useActionState we can get the form status action even from other components
