Add Pagination Support
Pagination is something you cannot miss when you are building an app. You could skip pagination when you are just getting started, but when your app has more data, you will need to implement pagination.
Creating pagination is data-source dependant, and you have to play by the rules provide by them. But you can create an offset based pagination system with most of the data sources.
In this lesson, we will implement pagination support for comments using SWR. Here's how it looks like in the end: