#Understanding CSR/SSR

4 messages · Page 1 of 1 (latest)

novel bay
#

I want to understand something as a beginner
I started working with NextJS

I'm creating a site, and the main thing there is that I have cards of services (my whole main page)

So.. does it mean that my whole <main> content (without header and footer of the page) will be 'use client'?

In the cards, I have the options:
Visit site (external link)
Add to wishlist / Remove from wishlist (there is also a wishlist section of cards)
Ask to transfer (from one service to another)

(I still barely understand CSR/SSR)

twin bobcatBOT
#

🔎 This post has been indexed in our web forum and will be seen by search engines so other users can find it outside Discord

      🕵️ Your user profile is private by default and won't be visible to users outside Discord, if you want to be visible in the web forum you can add the "Public Profile" role in <id:customize>

      ✅ You can mark a message as the answer for your post with `Right click -> Apps -> Mark Solution`
      (if you don't see the option, try refreshing Discord with Ctrl + R)
silk totem
#

to be clear, 'use client' still runs the component in the server, so it doesn't change the rendering to CSR

#

you only need a client component if the component needs some interactivity on the browser, so this usually includes buttons, or reading data from browser storage like localStorage