Warning: React 19’s use Hook Can Impact App Performance
React 19 and the NextJS App Router have the use hook, and it’s great. We can now await promises in client components. But there are some gotchas with it that we need to explore.
Code:
👉 Upcoming NextJS course:
👉 Don’t forget to subscribe to this channel for more updates:
👉 Discord server signup:
👉 VS Code theme and font? Night Wolf [black] and Operator Mono
👉 Terminal Theme and font? oh-my-posh with powerlevel10k_rainbow and SpaceMono NF
00:00 Introduction
01:20 Tacking Tricky State Resets
02:59 How React Flips Component “Modes”
04:26 Don’t Worry About This Too Much
04:53 The Behavior Changes After Render
06:40 How use Impacts Performance
10:04 Hoisting Fixes Everything
12:15 Outr ...
#JackHerrington #react_use_hook #use_form_hook #react_hooks #react_19 #usememo #use_hook_react #react_use #react #use_hooks
20240708
t6MeFVF3V9I
4 views
561
137
1 month ago 00:08:51 1
[CNBC Television] We should bring people back to work when the curve is bent: Former Wells Fargo CEO
1 month ago 00:00:23 4
️ ️ Two Majors #Summary for the Morning of 22 November 2024; 06:41 (GMT+3) ️
1 month ago 00:11:03 4
[Just_Aries] My favourite anime characters reacts I part 4 || Cid Kagenou - 2 || SPOILER ALERT || read the desc
2 months ago 00:01:06 1
US polarization may edge closer to civil war after elections – retired US diplomat
2 months ago 00:10:19 17
[GachaVerse ] The Rising Of The Shield Hero React To Naofumi || Gacha React
2 months ago 00:01:02 2
YOU SONS OF BITCHES! Egyptians react in rage as Israeli and Egyptian Flagged ship carrying explosives makes its way through Egyp
2 months ago 00:04:29 17
[NATSUMI024] [] Undertale AU reacts to dusttale stronger than you [] Undertale [] Gacha []
2 months ago 00:05:57 11
[NATSUMI024] DUSTTALE REACTS TO ??? /Gore/Loud sounds/angst/Flashing lights/