Рет қаралды 11,804
👉 Based on the "Advanced React" book, Chapter 2: www.advanced-react.com
The second episode of the "Advanced React" course. The course will be uploaded episode by episode once every 1-2 weeks.
🎬 Episode 2: Elements, Children and Re-renders
00:00 The problem
00:59 Composition trick to reduce re-renders
3:11 What are the Elements
4:42 How rendering and re-rendering are triggered
5:29 Diffing and reconciliation intro
8:10 Children prop
👩🏻💻 Code examples:
1. The problem: codesandbox.io/p/sandbox/exam...
2. "content" prop example: codesandbox.io/p/sandbox/exam...
3. Components as children: codesandbox.io/p/sandbox/exam...
💬 Twitter: / adevnadia
💬 Linkedin: / adevnadia