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.

šŸ’” This type of pagination is also known as load-more style or infinite scrolling.

In this lesson, we will implement pagination support for comments using SWR. Here's how it looks like in the end:

šŸ™ We need your help

We need your help to keep maintain & add new content to this course. Here's how you can support us: