In depth: overview
The "In depth" pages take the real code from the repository and explain it piece by piece. The code is not copied: it is included directly from web/, so it is always up to date.
| Page | The question it answers |
|---|---|
| The product list | How does the page fetch the products and display them, with their price and badge? |
| Adding and deleting | How does a form send a product to the API, show the error and refresh the page? |
Read them in this order: the second builds on lib/products.js, introduced in the first.
Before you start
These pages assume you know what a React component, a server component and a Server Action are. Otherwise, read The basics.