My New Favorite Pagination Method

Pagination is so important when it comes to displaying data in your app. This approach of server-side pagination in Next.js 13 Server Components is so cool for that. I implemented something similar on accident while building a dashboard and figured this works so well with pagination too.

Test this for yourself!:

— my links
My GitHub: