🎯 What you'll practice: Planning a course platform combining Lessons 6–10.
1-B 2-B 3-B 4-B | 5 = filter 6 = Favourites 7 = useEffect(()=>{fetch("/api/courses").then(r=>r.json()).then(setCourses);},[]); 8 = courses.filter(c=>c.title.toLowerCase().includes(query.toLowerCase())) 9 = Because a custom hook centralises the read/parse/stringify logic in one place, so every component just calls useLocalStorage(key,init) instead of repeating JSON.parse/stringify boilerplate everywhere | 10 = It holds a favourites array and setFavourites function exposed via a Provider; CourseCard calls useContext(FavouritesContext) and toggles by adding/removing the course id from the favourites array via setFavourites.