Skip navigation
Static vs. Dynamic rendering in Next.js
0:00 / 1:20

Static vs. Dynamic rendering in Next.js

Delba

@delba_oliveira133K followers

Visit on X
1,105 likesDownloadOriginal post

105,452 views

Static vs. Dynamic rendering in Next.js

11 Comments

Comments from the original post on X (Twitter)

  • Delba's profile picture

    @delba_oliveira

    Static rendering provides an affordable (no runtime server compute), performant (no runtime server compute), and reliable (no runtime server compute) starting point. You can intentionally opt into rendering at runtime when you need to by using dynamic APIs.

    14 likes

  • Delba's profile picture

    @delba_oliveira

    RE: the "RSC doesn't require a server" discourse™️ Static rendering at build time would not be possible if React Server Components required a runtime server to work.

    15 likes

  • Emanuel Peire's profile picture

    @emapeire

    Wonderful explanation 🫶

    3 likes

  • ProEvilz's profile picture

    @ProEvilz

    How do you create the videos? Is it After Effects?

    3 likes

  • Delba's profile picture

    @delba_oliveira

    I use @Remotion

    4 likes

  • Leibel Hecht's profile picture

    @leibelhecht

    Beware, if you use certain props (like searchParams) the rendering will be quietly changed to be dynamic and it may be difficult to debug by static isn't working

    3 likes

  • Delba's profile picture

    @delba_oliveira

    Yes, using dynamic functions/APIs that depend on runtime information signals the developer's intention and opts the page (today) or section (future via Partial Prerendering) into dynamic rendering. More:

    2 likes

  • Sander Vispoel's profile picture

    @Sandervspl

    This looks beautiful!

    2 likes

  • rafael r. camargo's profile picture

    @rafaelrcamargo

    That’s soo good, wow!

    2 likes

  • Juntao Qiu | 邱俊涛's profile picture

    @JuntaoQiu

    Thanks for the clear illustrations (and animations), they look amazing. Are these videos available on YouTube, too?

    2 likes

  • Delba's profile picture

    @delba_oliveira

    🫡