Frontend Master

JavaScript Curriculum

"The coffee shop site works but every change means editing raw HTML. React lets you build the menu as reusable components, update state without touching the DOM, and compose complex UIs from simple pieces."

React turns your UI into a tree of components — each one a function that takes data and returns what to display. Learn the mental model, the hooks, and the patterns that power every modern React app.

20 lessons~14h1190 XP

What you'll ship

A fully interactive Coffee Menu React app — components, props, state, effects, routing, and data fetching. The same app you built with vanilla JS, rebuilt the React way.

Lessons

1.

What is React

Virtual DOM, JSX, component model, declarative UI

2.

Your First Component

Function components, JSX syntax rules, returning elements, export

3.

Props

Passing data, prop types, default values, children, callback props, spread

4.

State — useState

useState hook, re-renders, state updates, immutability, functional updates

5.

Event Handling

Synthetic events, onClick/onChange, handler patterns, preventDefault, forms

6.

Conditional Rendering

Ternary, &&, early return, nullish coalescing, loading/error/empty states

7.

Lists & Keys

.map(), key prop, stable keys, filter+map, Fragment with key

8.

Forms in React

Controlled inputs, textarea, select, radio, checkbox, validation, uncontrolled

9.

useEffect

Side effects, dependency array, cleanup, fetch in useEffect, timers

10.

Component Composition

children prop, slot patterns, compound components, container/presenter, specialisation

11.

Lifting State Up

Shared state, sibling communication, common ancestor, callbacks, data flow

12.

useRef

useRef, DOM access, mutable values, previous value, forwardRef

13.

Custom Hooks

Extracting logic, reusable hooks, hook rules, useFetch, useDebounce

14.

useReducer

useReducer, reducer function, dispatch, actions, complex state

15.

Context API

createContext, useContext, Provider, prop drilling, context value

16.

Performance — memo & callbacks

React.memo, useMemo, useCallback, render profiling, premature optimisation

17.

React Router

BrowserRouter, Routes, Route, Link, NavLink, useParams, useNavigate, nested routes, Outlet

18.

Data Fetching Patterns

fetch in useEffect, loading/error/data state, AbortController, parallel fetches, useFetch hook, mutations

19.

Component Patterns

HOC, render props, compound components, controlled components, custom hooks

20.

Capstone — Coffee Menu App

All React skills combined — components, state, effects, context, routing, data fetching

React Fundamentals | Nexus Learn