11 lessons, in order. Each one runs in the editor above; for the concepts behind them, read the React guide.
Your first componentA React component is a function that returns JSX. Try editing the code below!
useState — managing stateManage component state with the useState hook.
Props — data between componentsPass data from a parent to a child component with props.
Lists & conditional renderingRender a list with map() and branch the UI on conditions.
useEffect & API fetchingHandle side effects and fetch data with useEffect.
useReducer — complex stateManage complex form/cart state with the reducer pattern using useReducer.
Custom hooks & ContextExtract business logic into a custom hook and share it globally with Context.
memo & useMemo & useCallbackLearn the performance hooks that prevent unnecessary re-renders.
Capstone: a mini dashboardBuild a mini dashboard that uses every hook you have learned.
Advanced. Optimistic update and rollbackPractice a structure that makes the user experience fast while still being able to roll back to the previous state on failure.
Advanced. A reducer that makes state transitions explicitFor a complex component, spelling out state transitions in a reducer makes testing and debugging easier than several useState calls.