Skip to content

Topics

Jump to a topic.

Search questions

Find a question by title, tag, or summary.

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.
  1. 010How does context reach consumers, and why do they all re-render?Coremedium
  2. 020How do you stop context changes from re-rendering too much?hard
  3. 030How do children, render props, compound components, and HOCs compare?medium
  4. 040What do custom hooks share between components, and what don't they?Coremedium