Module · Beginner · 1h 15m
Module 2: Data, forms and tests
Fetching with a data library, handling forms without pain, and testing behaviour rather than implementation.
- react
- module
Inside this module
- Fetch and cache data with a query library
- Build a form with validation and submit state
- Write a component test that survives refactors
Lessons
- 01Fetching data with a query library
Lesson · 25 min · Loading, error and cache states handled by a library so components stay about rendering.
- 02Forms without pain
Lesson · 25 min · Controlled inputs, validation and submit state with a small form library or plain React.
- 03Testing behaviour
Lesson · 25 min · Component tests that check what the user sees and does, so they survive refactors.

