Cannot use `useState` inside of callback?

I'm getting this error even though im using it inside a function that returns JSX.Element... No errors in my dev environment, only the vercel linter is saying it fails to compile
Was this page helpful?