server component throws error
This server component throws the following error:
Error: Objects are not valid as a React child (found: [object Promise]). If you meant to render a collection of children, use an array instead.
Why? i'm writing the server component and fetching data as the nextjs docs mentioned.1 Reply
I forgot to delete the 'use client' directive in the parent component, my bad.
!close