正在加载视频...

视频加载失败

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 年前

🫡

相关视频