Functions cannot be passed directly to Client Components
Unanswered
Sloth bear posted this in #help-forum
Sloth bearOP
Hi, I have to pass function components to client components as a part of a configuration. Meaning I have a configuration with a list of custom components (which are react function components), how could I feed them to a client component ? The configuration comes from the top level hence a server component...
1 Reply
Chinese Egret
Why you need to pass a function as a prop from Server Component to Client Component? From what I know you can only use serializable data.