Introduction
Hooks let you run code at key moments in your app's life. They help you manage requests, errors, and responses easily.
You want to add a loading spinner or log every request your app makes.
You need to catch and show friendly messages when something goes wrong.
You want to modify data coming from the server before your app uses it.
You want to add headers or tokens to every fetch request automatically.