portfolio-website
portfolio-website copied to clipboard
useFormStatus() is not a function
Hello, I am getting the following error: useFormStatus() is not a function
It comes from the submit button component. I can import useFormStatus() and TypeScript knows it's a function, but I can not execute it.
Hey, were you guys able to resolve this issue? I was having the same problem.
@ByteGrad same issue here.
@Cborgg
try to import it like this
// @ts-ignore
import { experimental_useFormStatus as useFormStatus } from 'react-dom';