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 …