Master Windows Internals - Kernel Programming, Debugging & Architecture
Learn AI, Data Science & Business — Earn Certificates That Get You Hired
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