Summary
In this chapter, we learned how to make the application communicate with its API. First, we defined an API client that allows us to unify the API requests. Then, we introduced React Query, a library for handling asynchronous states. Using it reduces boilerplate and simplifies the code base significantly.
Finally, we declared the API requests, and then we integrated them into the application.
In the next chapter, we will learn how to create an authentication system for our application where only authenticated users will be able to visit the dashboard.