Learn This Before React Compiler

Publié le: 29 mai 2024
sur la chaîne: 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


Sur cette page du site, vous pouvez voir la vidéo en ligne Learn This Before React Compiler durée heure minute seconde en bonne qualité , qui a été Téléchargé par l'utilisateur LifeLoveAndMonads 29 mai 2024, Partagez le lien avec vos amis et connaissances, sur youtube cette vidéo a déjà été regardée 495 fois et il a aimé 36 téléspectateurs. Bon visionnage!