React in Practice
Turn Tally into a real React app: pages with React Router, data from a mock API with TanStack Query, validated forms, well-placed state and accessibility for everyone.
Modules
6
Lessons
36
Level
Intermediate
Project
Reviewed by a mentor
About This Course
Course 9 gave you components, props, state and hooks. This course turns those pieces into a real application. You add pages with React Router, load and change data through an API with TanStack Query, develop against a mock API with json-server and Mock Service Worker, build validated forms with Zod and React Hook Form, choose the right home for each piece of state, and make everything usable with a keyboard and a screen reader. By the end, Tally is a multi-page React app on a mock API: a dashboard, a filterable transactions list, detail pages, add and edit forms and a budgets page, all passing an automated accessibility check. AI is for explanations and brainstorming only in this course: you write all the code yourself.
You'll Be Able To
- Build a multi-page React app with client-side routing, dynamic routes and shared layouts
- Fetch, cache and update server data, handling loading and error states correctly
- Develop and test a frontend against a mock API with json-server and Mock Service Worker
- Build and validate forms for creating and editing data, with clear and accessible error messages
- Choose between local state, context, reducers and a state library for a given problem
- Audit a React app for accessibility and fix keyboard, semantics and screen reader issues
What's Inside
- 1
Routing
6 lessons
Give Tally real pages with React Router: routes, links that don't reload, a detail page for each transaction, a shared layout, a filter kept in the address and a 404 page.
- 2
Fetching data
7 lessons
Load Tally's data from an API: handle loading and errors, avoid race conditions, then cache, share and update server data with TanStack Query queries and mutations.
- 3
Working with a mock API
4 lessons
Build against a pretend server: run json-server, mock slow, empty and failing answers with Mock Service Worker, and fill Tally's API with realistic seed data.
- 4
Forms
7 lessons
Build Tally's add and edit forms: validate with a Zod schema, manage them with React Hook Form, show clear accessible errors, and edit or delete records safely.
- 5
State management
6 lessons
Decide where each piece of Tally's state lives: local state, lifting, context, useReducer for multi-step flows and a Zustand store, then build the Budgets page.
- 6
Accessibility
6 lessons
Make Tally usable by everyone: semantic HTML, keyboard and focus management, ARIA names and live regions, and testing with axe and a screen reader, then audit and fix it.