正在加载视频...

视频加载失败

Reminder: you can enable React compiler in Next 15

92,554 次观看 • 1 年前 •via X (Twitter)

10 条评论

Pushkar Kathayat 的头像
Pushkar Kathayat1 年前

So next js is slow without it

Alex Sidorenko 的头像
Alex Sidorenko1 年前

Nope. In practice, most renders are fine. However, sometimes excessive rendering could lead to performance bottlenecks. You can fix them with memoization (memo, useCallback, uesMemo, etc...). Compiler does all that optimization automatically, so you don't need to think about it

Go furthur, Boddhisatva! 的头像
Go furthur, Boddhisatva!1 年前

breaks many more complex components of ours

Salvatore 的头像
Salvatore1 年前

Wo, whats that tailwind collapse plugin?

Tuomo 的头像
Tuomo1 年前

@vercel @leeerob @rauchg is there a way to get react compiler benefits with NextJS v14? I started my project on fall and I am not yet ready to upgrade to v15 😂

XJP 的头像
XJP1 年前

Awesome didn’t know this thx

Wael Assaf 的头像
Wael Assaf1 年前

So it's not enabled by default? When it's gonna be out of experimental? Once React 19 stabilizes?

Alex Sidorenko 的头像
Alex Sidorenko1 年前

Not enabled by default and requires babel-plugin-react-compiler. Here is a roadmap to stable

Andrew Aliaj 的头像
Andrew Aliaj1 年前

Is React compiler enabled in the Next config file

Alex Sidorenko 的头像
Alex Sidorenko1 年前

It's in the video: 22s - 25s 😅

相关视频