Next.js Discord

Discord Forum

HomePage - what happens if "use client"

Unanswered
Brown bear posted this in #help-forum
Open in Discord
Brown bearOP
Hello, i have one page website made in Next.js.
I have to make SVG initial loader, so i have one page with 7 components which makes the page, all of them are server components.
If i on the main page use "use client" what happens? Will whole page will be loaded only on client?

I was thinking about using UseState and Effect for initial loading and then hide it and render page.

Thank you.

0 Replies