🖨 Print / Save PDF
← Lesson
BitWith
Bite
Full-Stack · Quick Reference
Lesson 23 — Project 4: Course Platform
Cheat Sheet
Full-Stack
In one line:
A multi-page React app with search, filter, routed detail pages, and shared favourites state via Context.
Build Checklist
1
Home page with course cards
2
Search bar + category filter
3
Routed detail page via useParams
4
Favourite toggle shared via Context
5
404 route for unmatched paths
Context Pattern
const FavCtx = createContext(); function FavProvider({children}) { const [favs, setFavs] = useState([]); return <FavCtx.Provider value={{favs,setFavs}}> {children} </FavCtx.Provider>; } const {favs, setFavs} = useContext(FavCtx);