Explore Library
React NativeState Management

92 items

1

useState Hook Basics

Code Quiz
2

Context Performance Pitfalls & Re-renders

Slides / Video
3

Context API for Shared State

Quiz
4

Persisting State with AsyncStorage

Quiz
5

Context Provider Re-render Pitfalls

Quiz
6

useEffect for Side Effects

Quiz
7

Redux Toolkit Slices

Quiz
8

Avoiding Unnecessary Re-renders

Quiz
9

useRef for Mutable State

Quiz
10

State vs Props Distinction

Quiz
11

Preserving and Resetting State

Quiz
12

Memoizing Derived Values

Quiz
13

useReducer for Complex Logic

Quiz
14

useState vs useReducer

Quiz
15

Redux Core Concepts

Quiz
16

Controlled TextInput State

Quiz
17

Global State Libraries Overview

Quiz
18

useContext Hook Consumption

Quiz
19

Managing Derived State

Quiz
20

useState Hook Fundamentals

Quiz
21

State Updates Are Asynchronous

Quiz
22

Functional Updates with Previous State

Quiz
23

Immutable State Updates

Quiz
24

Lifting State Up

Quiz
25

Creating and Providing Context

Slides / Video
26

useContext Hook Basics

Slides / Video
27

Context API for Global State

Slides / Video
28

The Prop Drilling Problem

Slides / Video
29

Lifting State Up to Share Between Components

Slides / Video
30

useReducer for Complex State Logic

Slides / Video
31

useState Hook for Local Component State

Slides / Video
32

Custom Hooks for Reusable Stateful Logic

Slides / Video
33

useEffect for Syncing State with Side Effects

Slides / Video
34

Persisting State with AsyncStorage

Slides / Video
35

Async State & Data Fetching Patterns

Slides / Video
36

Choosing Local, Context, or External Store

Slides / Video
37

Zustand as a Lightweight State Library

Slides / Video
38

useSelector & useDispatch Hooks

Slides / Video
39

Actions, Reducers, and Dispatch

Slides / Video
40

useRef for Non-Rendering State

Code Quiz
41

Stale Closure in Updates

Code Quiz
42

Batching of State Updates

Code Quiz
43

useCallback for Stable Handlers

Code Quiz
44

Passing State Down via Props

Code Quiz
45

useMemo for Derived Values

Code Quiz
46

Context API for Global State

Code Quiz
47

Derived State from Props

Code Quiz
48

Lifting State Up

Code Quiz
49

Functional State Updates

Code Quiz
50

Updating Object State

Code Quiz
51

Updating Array State

Code Quiz
52

Lazy Initial State

Code Quiz
53

Multiple vs Single State Object

Code Quiz
54

useReducer for Complex State

Code Quiz
55

Dispatching Actions

Code Quiz
56

Passing Setters as Callbacks

Code Quiz
57

useContext Hook Consumption

Code Quiz
58

Context Provider Value Setup

Code Quiz
59

useEffect for State Sync

Code Quiz
60

Redux Toolkit for Simplified Setup

Slides / Video
61

Redux Fundamentals & Store Concept

Slides / Video
62

Functional Updates with Previous State

Slides / Video
63

Async Updates with useEffect

Flashcard
64

Functional Updates

Flashcard
65

Immutability When Updating State

Flashcard
66

Redux Toolkit Setup

Flashcard
67

Context Performance Pitfalls

Flashcard
68

Creating and Consuming Context

Flashcard
69

Prop Drilling Problem

Flashcard
70

Zustand Lightweight State

Flashcard
71

useRef for Mutable State

Flashcard
72

Custom Hooks for Stateful Logic

Flashcard
73

MobX Observable State

Flashcard
74

Lifting State Up

Flashcard
75

Recoil and Jotai Atoms

Flashcard
76

Choosing State Scope

Flashcard
77

Server State with React Query

Flashcard
78

Sharing State Across Screens

Flashcard
79

Avoiding Stale Closures

Flashcard
80

useSelector and useDispatch

Flashcard
81

Persisting State with AsyncStorage

Flashcard
82

Redux Persist Rehydration

Flashcard
83

Derived State and Selectors

Flashcard
84

Redux Core Concepts

Flashcard
85

State vs Props

Flashcard
86

Provider Placement and Composition

Flashcard
87

Context API for Global State

Flashcard
88

useReducer for Complex State

Flashcard
89

Batching of State Updates

Flashcard
90

Immutability in State Updates

Slides / Video
91

State vs Props Distinction

Slides / Video
92

useRef for Non-Rendering State

Slides / Video
Code QuizIntermediate

Passing State Down via Props

A prop is destructured with the wrong name.

Codejavascript
function Parent() {
  const [count, setCount] = useState(0);
  return <Child count={count} />;
}

function Child({ value }) {
  return <Text>{value}</Text>;
}

What is the bug in this code?