prisma-server-actions
prisma-server-actions copied to clipboard
Invalid JSX
Hi Steven,
Thanks very much for sharing this (and the yt video).
I'm trying to use this inside your precedents repo.
The app/page.tsx generates an error that says: 'Posts' cannot be used as a JSX component. Its return type 'Promise<Element>' is not a valid JSX element. Type 'Promise<Element>' is missing the following properties from type 'ReactElement<any, any>': type, props, key
Do you know if there is a way to fix this?
Thank you
use {/* @ts-expect-error server component */} above the server component in that jsx