Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/nairgh/useformstatus

useFormStatus Hook in React 19 Version
https://github.com/nairgh/useformstatus

react19 useformstatus vite

Last synced: 16 days ago
JSON representation

useFormStatus Hook in React 19 Version

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

![uastate](https://github.com/user-attachments/assets/36d368f7-49fb-4cdd-836e-20fbcf8e33f5)