Chapter 06
Context and composition
Sharing data and logic between components: how context propagates and what it costs, composition patterns that avoid prop drilling, and custom hooks.- 010How does context reach consumers, and why do they all re-render?Coremedium
- 020How do you stop context changes from re-rendering too much?hard
- 030How do children, render props, compound components, and HOCs compare?medium
- 040What do custom hooks share between components, and what don't they?Coremedium