Class Central is learner-supported. When you buy through links on our site, we may earn an affiliate commission.

YouTube

Pagination in React Tutorial with React Query and Hooks Examples

Dave Gray via YouTube

Overview

Google, IBM & Meta Certificates – 40% Off
One Coursera Plus subscription covers most Professional Certificates on Coursera.
Unlock All Certificates
This tutorial demonstrates two ways to add pagination to React query results: React hooks with Axios, and React Query with numbered buttons and first, previous, next, and last-page navigation.

Syllabus

Intro
Welcome
Installing dependencies
Tutorial Pace
Begin Example #1: Axios
React hooks only, Basic API
Post component
useEffect
Complete Example1 component
Check Example #1 functionality
Begin Example #2
User component
More useful API data
Axios instance #2
Example #2 imports
React Query: useQuery
React Query: isPreviousData and keepPreviousData
More Example2 component
PageButton component
Example2 JSX
Example #2 functionality
Change next & previous to first & last
Test the new functions

Taught by

Dave Gray

Reviews

Start your review of Pagination in React Tutorial with React Query and Hooks Examples

Never Stop Learning.

Get personalized course recommendations, track subjects and courses with reminders, and more.

Someone learning on their laptop while sitting on the floor.