小编Raf*_*ski的帖子

Error: Functions cannot be passed directly to Client Components unless you explicitly expose it by marking it with "use server"

Got this error message in Next.js but have no idea what to do with this. Next.js version 13.0.5.

I was passing a prop to a client component in Next.js. Prop is the list of objects, and one of the values is a function. But the question is, what this error message means?

Error: Functions cannot be passed directly to Client Components unless you explicitly expose it by marking it with "use server"

How can I expose a function by marking …

reactjs next.js

34
推荐指数
2
解决办法
4万
查看次数

标签 统计

next.js ×1

reactjs ×1