React exercises with solutions
45 practice problems from the 15 lessons of the React: Build User Interfaces course, in lesson order and from easy to hard inside each lesson. Open a problem, write your code and press Submit: the tests run in your browser and nothing is sent to a server.
15 easy problems 15 medium problems 15 hard problems
What React is: components and rendering
3 problems · Read the lesson
JSX: HTML inside JavaScript
3 problems · Read the lesson
Props: passing data to components
3 problems · Read the lesson
Lists and keys
3 problems · Read the lesson
Conditional rendering
3 problems · Read the lesson
Responding to events
3 problems · Read the lesson
State: a component's memory
3 problems · Read the lesson
Forms and controlled inputs
3 problems · Read the lesson
Sharing state between components
3 problems · Read the lesson
Effects: syncing with the outside world
3 problems · Read the lesson
Refs: remembering without rendering
3 problems · Read the lesson
Custom Hooks: reusing stateful logic
3 problems · Read the lesson
Reducers: organising state changes
3 problems · Read the lesson
Context: sharing values across the tree
3 problems · Read the lesson
Thinking in React
3 problems · Read the lesson