This is the course's final check: a different app, from a brief, with no
walkthrough. Plan first. Sketch the components, list the state using Day 1's
questions, and decide where each piece lives. Then build one working step at a
time. books.js has the starter books and the three statuses.
Expect a first attempt to take 75–90 minutes, and plan to split it over two
sittings. Treat that as a guide, not a deadline. If the whole
brief is too much for one sitting, first get one complete interaction working,
then return for validation and the remaining cases. Before opening the solution,
write down what works, what fails, and the next change you would try.
The brief
A Reading Tracker: books you want to read, are reading, and have read.
Data
Books live in a reducer with three actions: book_added (new books start
as Want to read), book_status_changed and book_removed.
The reducer is served by a BooksProvider through two contexts, with
useBooks() and useBooksDispatch() hooks that throw a clear error outside
the provider.
Screen
An add form with a Book title field, labelled with useId. A blank title
shows Enter a title., connected with aria-describedby, and focuses the
field. After adding, the field is empty and focused again.
Filter buttons: All (3), Want to read (1), Reading (1),
Read (1). Write the counts in a custom hook, useBookCounts(), and mark
the current filter with aria-pressed.
Each book shows its title, a status <select> and a × remove button. An
empty filter shows No books here yet.
An error boundary around the list.
Acceptance checks:
Adding Clean Code makes All (4) and Want to read (2), and focus is
back in the field.
Changing Refactoring UI to Read updates the counts straight away, and
under the Want to read filter it disappears from the list.
Runs with Vite on your computer: unzip, then npm install and npm run dev.
Hint 1: a plan
Files: state/booksReducer.js, state/BooksContext.jsx,
hooks/useBookCounts.js, and components/ for AddBookForm, Filters,
BookList and ErrorBoundary. State: the books in the reducer; the current
filter in App, since only the filters and the list need it.
Hint 2: start from the Study Board
The reducer, the context file and the boundary have the same shape as the Study
Board's. Copy the structure, not the code, and rename as you go.
Runs with Vite on your computer: unzip, then npm install and npm run dev.
Your structure can differ. What matters is that state has one home, that every
change goes through the reducer, and that the acceptance checks pass.
What next
You can now structure a React app that grows: reducers for complex updates,
context for shared state, hooks for reusable logic, and the tools to keep it
fast and accessible. From here:
Download the Reading Tracker and give it tests, as you did for the Study
Board.
Read React's guide on react.dev, especially
Escape Hatches, which goes deeper into refs and effects.
React Advanced in 7 Days picks up from here: component APIs, external
stores, Suspense, performance profiling, accessible widgets and testing
strategy.
For a framework path next, Next.js beginner covers
routing, server components and server actions.
Completion is saved in this browser only. It does not measure mastery.