Next.js Discord

Discord Forum

Server component

Unanswered
Masai Lion posted this in #help-forum
Open in Discord
Masai LionOP
Hey, I have a Navbar rendered on the server, but it will be used inside a client component. Is that okay? Also, the server-side Navbar uses a server component, which must run in the server environment.

3 Replies

Masai LionOP
and i am getting error that, it can't be used inside of client component
Masai LionOP
well, ig its not possible so, i made parent component server and seprated all the client logic into seprate component.
it work now