Video wird geladen...

Video konnte nicht geladen werden

Zur Startseite

Static vs. Dynamic rendering in Next.js

105,383 Aufrufe • vor 2 Jahren •via X (Twitter)

11 Kommentare

Profilbild von Delba
Delbavor 2 Jahren

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.

Profilbild von Delba
Delbavor 2 Jahren

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.

Profilbild von Emanuel Peire
Emanuel Peirevor 2 Jahren

Wonderful explanation 🫶

Profilbild von ProEvilz
ProEvilzvor 2 Jahren

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

Profilbild von Delba
Delbavor 2 Jahren

I use @Remotion

Profilbild von Leibel Hecht
Leibel Hechtvor 2 Jahren

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

Profilbild von Delba
Delbavor 2 Jahren

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:

Profilbild von Sander Vispoel
Sander Vispoelvor 2 Jahren

This looks beautiful!

Profilbild von rafael r. camargo
rafael r. camargovor 2 Jahren

That’s soo good, wow!

Profilbild von Juntao Qiu | 邱俊涛
Juntao Qiu | 邱俊涛vor 2 Jahren

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

Profilbild von Delba
Delbavor 2 Jahren

🫡

Ähnliche Videos