"use client"; import { testFn, testLogin } from "@/actions/test"; import { useActionState, useState } from "react"; export default function TestForm() { const [state, formAction, isPending] = useActionState( testLogin, 0, ); return (

State: {state}

); }