Загрузка видео...

Не удалось загрузить видео

На главную

Static vs. Dynamic rendering in Next.js

105,383 просмотров • 2 лет назад •via X (Twitter)

Комментарии: 11

Фото профиля Delba
Delba2 лет назад

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.

Фото профиля Delba
Delba2 лет назад

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.

Фото профиля Emanuel Peire
Emanuel Peire2 лет назад

Wonderful explanation 🫶

Фото профиля ProEvilz
ProEvilz2 лет назад

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

Фото профиля Delba
Delba2 лет назад

I use @Remotion

Фото профиля Leibel Hecht
Leibel Hecht2 лет назад

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

Фото профиля Delba
Delba2 лет назад

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:

Фото профиля Sander Vispoel
Sander Vispoel2 лет назад

This looks beautiful!

Фото профиля rafael r. camargo
rafael r. camargo2 лет назад

That’s soo good, wow!

Фото профиля Juntao Qiu | 邱俊涛
Juntao Qiu | 邱俊涛2 лет назад

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

Фото профиля Delba
Delba2 лет назад

🫡

Похожие видео