Loading video...

Video Failed to Load

Go Home

Reminder: you can enable React compiler in Next 15

92,554 views • 1 year ago •via X (Twitter)

10 Comments

Pushkar Kathayat's profile picture
Pushkar Kathayat1 year ago

So next js is slow without it

Alex Sidorenko's profile picture
Alex Sidorenko1 year ago

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!'s profile picture
Go furthur, Boddhisatva!1 year ago

breaks many more complex components of ours

Salvatore's profile picture
Salvatore1 year ago

Wo, whats that tailwind collapse plugin?

Tuomo's profile picture
Tuomo1 year ago

@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's profile picture
XJP1 year ago

Awesome didn’t know this thx

Wael Assaf's profile picture
Wael Assaf1 year ago

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

Alex Sidorenko's profile picture
Alex Sidorenko1 year ago

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

Andrew Aliaj's profile picture
Andrew Aliaj1 year ago

Is React compiler enabled in the Next config file

Alex Sidorenko's profile picture
Alex Sidorenko1 year ago

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

Related Videos