Learn This Before React Compiler

Pubblicato il: 29 maggio 2024
sul canale di: LifeLoveAndMonads
495
36

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


In questa pagina del sito puoi guardare il video online Learn This Before React Compiler della durata di ore minuti seconda in buona qualità , che l'utente ha caricato LifeLoveAndMonads 29 maggio 2024, condividi il link con amici e conoscenti, su youtube questo video è già stato visto 495 volte e gli è piaciuto 36 spettatori. Buona visione!