Back to Browse

Learn This Before React Compiler

494 views
May 30, 2024
10:53

You don't need to know how car actually works in order to be able to drive it, you will have some understanding anyway. Same with writing React code, you can write it based on some wrong ideas about how its rendering actually works, but if you really understand when and why React renders, you will write much better React code. 0:00 - Intro 0:25 - Most common misconception about what causes React to render 0:38 - When React renders? 1:19 - Example of simple React rendering 3:06 - Batching setStates in one rendering pass 4:39 - React.memo() function and why we need it 5:41 - Main pitfall of React.memo() function 6:47 - One extra reason to render - useSyncExternalStore 7:54 - React Context second reason to extra render 8:58 - React rendering mental model summary

Download

0 formats

No download links available.

Learn This Before React Compiler | NatokHD