Explore Library
ReactContext API

50 items

1

The Prop Drilling Problem Context Solves

Slides / Video
2

Re-rendering Behavior of Context Consumers

Slides / Video
3

React.memo Won't Stop Context Re-renders

Code Quiz
4

Nesting and Overriding Providers

Slides / Video
5

Custom Consumer Hook for Context

Slides / Video
6

Creating a Custom Provider Component

Slides / Video
7

Context with useReducer

Slides / Video
8

Memoizing Context Provider Values

Slides / Video
9

Splitting Contexts to Minimize Re-renders

Slides / Video
10

Providing Context Values with Provider

Slides / Video
11

Creating Context with createContext

Slides / Video
12

Updating Context via State

Code Quiz
13

Passing Updaters Through Context

Code Quiz
14

Nested Providers and Shadowing

Code Quiz
15

Reading Context Outside the Provider

Code Quiz
16

Default Value Without a Provider

Code Quiz
17

Providing a Context Value

Code Quiz
18

Creating a Context

Code Quiz
19

Context.Consumer Render Prop

Code Quiz
20

Reducer Missing Default Case

Code Quiz
21

Inline Context Value Re-renders

Code Quiz
22

Swapped State and Dispatch Contexts

Code Quiz
23

Inverted Guard in Custom Context Hook

Code Quiz
24

Context Value Identity Pitfall

Quiz
25

Splitting Contexts

Quiz
26

displayName for DevTools

Quiz
27

Memoizing Context Value

Quiz
28

Context Re-render Behavior

Quiz
29

Context.Consumer Render Prop

Quiz
30

Providing Context Values

Quiz
31

Default Value in createContext

Quiz
32

Creating a Context

Quiz
33

Custom Hook for Context

Quiz
34

Overriding Context Values

Quiz
35

When to Use Context

Quiz
36

Nested and Multiple Providers

Quiz
37

Context with useReducer

Quiz
38

Context Limitations

Flashcard
39

Context.Consumer Render Prop

Flashcard
40

Creating a Context

Flashcard
41

Providing a Context

Flashcard
42

The value Prop

Flashcard
43

Default Value in createContext

Flashcard
44

Custom useContext Hook

Flashcard
45

Splitting Contexts

Flashcard
46

Memoizing Context Value

Flashcard
47

Re-render on Value Change

Flashcard
48

Context with useReducer

Flashcard
49

Context displayName

Flashcard
50

Nesting and Overriding Providers

Flashcard
Slides / VideoIntermediate

Re-rendering Behavior of Context Consumers

Every component consuming a context re-renders whenever that context's value changes.

Slide 1
1 / 6