Buckets:
| 'use client' | |
| import { useActionState } from 'react' | |
| export function Form({ | |
| action, | |
| id, | |
| }: { | |
| action: () => Promise<string> | |
| id: string | |
| }) { | |
| const [result, formAction] = useActionState(action, 'initial') | |
| return ( | |
| <form id={id} action={formAction}> | |
| <button>Submit</button> | |
| <p>{result}</p> | |
| </form> | |
| ) | |
| } | |
Xet Storage Details
- Size:
- 334 Bytes
- Xet hash:
- ee8d569621ab2a297d3e23639d4373e4b131584fa68cbac86273af126a88b9f6
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.