Free ATS Friendly Resume Builder Online

Create Your Resume

Resume Builder

Resume Maker

Resume Templates

Resume PDF Download

Create Your Resume is a free online resume builder that helps job seekers create professional, ATS friendly resumes in minutes. Easily build, customize, and download modern resume templates in PDF format.

Our resume maker is designed for freshers and experienced professionals looking to create job-ready resumes. Choose from multiple resume templates, customize sections, and generate ATS optimized resumes online for free.

Create resumes for IT jobs, software developers, freshers, experienced professionals, managers, and students. This free resume builder supports CV creation, resume PDF download, and online resume editing without signup.

All in How To
January 15, 2026 Admin

How to Implement Pagination in a React JS Application for Faster Loading and Better UX

How to Implement Pagination in a React JS Application for Faster Loading and Better UX

When a React application starts to grow, one of the first problems developers face is handling large amounts of data. Imagine loading hundreds of users, products, or blog posts on a single page. The browser becomes slower, the UI feels heavy, and users start losing interest. Pagination solves this by breaking large datasets into smaller, manageable chunks so only a few records are shown at a time.

Pagination is not just about improving performance. It also improves readability, makes navigation easier, and creates a more professional user experience. This is why almost every modern web application — from e-commerce platforms to job portals — uses pagination.

Let’s understand how pagination works in a real React JS application.

At its core, pagination is simply slicing an array of data based on the current page. You decide how many items should appear per page, calculate which records belong to that page, and render only those records.

Assume you have a list of 100 users coming from an API or a database.


const users = Array.from({ length: 100 }, (_, i) => ({
  id: i + 1,
  name: `User ${i + 1}`
}));

Next, we decide how many records to show per page and track the current page.


import { useState } from "react";

const itemsPerPage = 10;

const PaginationExample = () => {
  const [currentPage, setCurrentPage] = useState(1);
};

Now we calculate which items belong to the current page.


const indexOfLastItem = currentPage * itemsPerPage;
const indexOfFirstItem = indexOfLastItem - itemsPerPage;
const currentItems = users.slice(indexOfFirstItem, indexOfLastItem);

This logic means:

  • Page 1 shows items 1–10
  • Page 2 shows items 11–20
  • Page 3 shows items 21–30

Only these sliced items are rendered, keeping the UI fast and efficient.

To display them in React:


<ul>
  {currentItems.map((user) => (
    <li key={user.id}>{user.name}</li>
  ))}
</ul>

Next, we need pagination controls so users can move between pages. First, calculate the total number of pages.


const totalPages = Math.ceil(users.length / itemsPerPage);

Then generate page buttons dynamically.


<div>
  {Array.from({ length: totalPages }, (_, i) => (
    <button key={i} onClick={() => setCurrentPage(i + 1)}>
      {i + 1}
    </button>
  ))}
</div>

Every time the user clicks a page number, the currentPage changes and React automatically updates the displayed data.

To make the UI even better, we add Next and Previous buttons.


<button disabled={currentPage === 1} onClick={() => setCurrentPage(currentPage - 1)}>
  Previous
</button>

<button disabled={currentPage === totalPages} onClick={() => setCurrentPage(currentPage + 1)}>
  Next
</button>

In real production applications, you usually don’t load all records at once. Instead, the backend sends paginated data.

A typical API request looks like this:


fetch(`/api/users?page=${currentPage}&limit=10`)

This way, your React app only downloads what it needs, making it much faster and more scalable.

Well-implemented pagination improves not only performance but also SEO. Search engines prefer pages that load quickly and display structured, clean content. If you keep the page number in the URL and load paginated data properly, your React application becomes both user-friendly and search-engine friendly.

Pagination might look simple, but it is one of the most powerful techniques to build professional, high-performance React applications that scale as your data grows.

Related Tags

react hooks, frontend optimization, ui ux best practices, web performance, api handling, javascript arrays, client side pagination, server side pagination, scalable react apps

#how to implement pagination in react#react js pagination#react pagination example#pagination in react application#react frontend pagination#api pagination react#react pagination best practices#javascript pagination#pagination ui react#react performance optimization

Recent Posts

Dec 30, 2025

Top Statistics Interview Questions & Answers (Beginner to Advanced) – A Complete 2026 Job-Ready Guide

Statistics interviews test not only formulas but also your ability to think logically, interpret data, and solve real-world problems. This blog covers the most frequently asked statistics interview questions, divided into Beginner, Intermediate, and Advanced levels with clear, keyword-rich answers. It also includes practical insights, pro tips, common mistakes, and a future-ready perspective to help you crack interviews confidently.

Read Article
Dec 30, 2025

Resume Tips That Build Your Personal Brand: Stand Out Before the Interview

Your resume is more than a job application—it’s a personal brand statement. In a competitive, AI-driven hiring market, resumes must communicate value, clarity, and credibility fast. This guide shares practical, future-ready resume tips to help you build a strong personal brand that recruiters remember.

Read Article
Dec 30, 2025

Resume Tips That Make Your Resume Look Modern

A modern resume is more than good design—it’s about clarity, relevance, and strategy. Recruiters spend seconds scanning resumes, so yours must instantly communicate value. This blog breaks down practical, future-ready resume tips that align with today’s hiring trends. Learn how to update your resume to look clean, professional, and competitive in a fast-changing job market.

Read Article

More in How To

Dec 30, 2025

How to Crack the Uber SDE-1 Interview and Land a 55+ LPA Software Engineer Job (Real Experience)

Learn how to crack the Uber SDE-1 interview with real rounds, DSA, system design, and hiring manager tips to land a 55+ LPA job.

Read Article
Dec 30, 2025

How to Crack the Confluent Interview and Land a 60+ LPA Software Engineer Job

Learn how to crack the Confluent interview with real rounds, design questions, DSA tips, and HR insights to land a 60+ LPA software job.

Read Article
Dec 30, 2025

How to Crack the Visa Interview and Land a 30+ LPA Software Engineer Job (Real Interview Experience)

Learn how to crack the Visa interview with real rounds, DSA, system design, and hiring manager tips to secure a 30+ LPA SDE job.

Read Article