'use client' import { ReactNode, useActionState } from 'react' export function Form({ action }: { action: () => Promise }) { const [result, formAction] = useActionState(action, 'initial') return (

Inline Server Action with Cache Components

{result}

) }