[Reopened] use client on some parts of server-side component/page?
Unanswered
Chum salmon posted this in #help-forum
Chum salmonOP
Hey all,
I wrote a question last night and accepted an answer but realized it wasn't quite what I needed so I'm reopening it.
I have the following code:
Which I want to be client-side because it uses client APIs like onClick. However, I'm curious as to if there is an easier way to break these into client components than to make super specific components in separate files?
I'm also curious as to if client components are server-side rendered in their skeleton, but I heard about hydration and I'm wondering if that's what runs on the client component.
Thanks!
I wrote a question last night and accepted an answer but realized it wasn't quite what I needed so I'm reopening it.
I have the following code:
Which I want to be client-side because it uses client APIs like onClick. However, I'm curious as to if there is an easier way to break these into client components than to make super specific components in separate files?
I'm also curious as to if client components are server-side rendered in their skeleton, but I heard about hydration and I'm wondering if that's what runs on the client component.
Thanks!