Introduction
Mocking data fetching helps you test and build your app without needing a real server. It lets you pretend to get data so you can see how your app works.
You want to build a page before the real API is ready.
You want to test how your app behaves with different data.
You want to avoid slow or unreliable network calls during development.
You want to show a loading state or error state without real data.
You want to practice fetching data without setting up a backend.