React: final assessment

This covers the whole course. Take it after the last module.

Final quiz

1. What does React do when state changes?
2. Which returns two values from useState?
3. How do you render an array of names as items?
4. Which hook remembers a DOM element?
5. What does a controlled input need?
6. Where does an effect's cleanup run?
7. Why is setCount(count + 1) called twice in one click only one more?
8. Which is a valid style attribute?
9. What makes a component reusable across pages?
10. When is context the wrong tool?
11. Which belongs in an event handler rather than an effect?
12. Why must a reducer be pure?
13. A debounced search clears its timeout in the effect's cleanup. Why?
14. What goes wrong if a component is defined inside another component?
15. Why can two components using useToggle() be toggled independently?
16. Why keep an exhaustive list of action types in a reducer with a default that throws?

Practical assessment: Build a contact manager

Without using hints, build a React app to add, edit, search and delete contacts, with favourites and a detail view.

Final project

A budget tracker: Build a React app that records income and expenses, shows the balance and the spending per category, and lets the user filter, edit and delete entries.

How it is evaluated

To complete this course