
Security News
The Hidden Blast Radius of the Axios Compromise
The Axios compromise shows how time-dependent dependency resolution makes exposure harder to detect and contain.
reactjs-forpagination
Advanced tools
A simple pagination component to use inside your react projects.
A simple pagination component to use inside your react projects.

View sample code on codesandbox.
1. npm i pagination-for-reactjs-component --save
import Pagination from 'pagination-for-reactjs-component'
import "bootstrap/dist/css/bootstrap.min.css";
import MuiPagination from 'pagination-for-reactjs-component/mui'
Inside your render or return
<PaginationComponent
pageCount={pageCount}
pageIndex={pageIndex}
setPageIndex={setPageIndex}
/>
<MuiPagination
pageCount={pageCount}
pageIndex={pageIndex}
setPageIndex={setPageIndex}
/>
(variable, type:integer), pass the value of the total number of pages or numbers for your pagination
(variable, type:integer), pass the value of the current page number within your series.
(function, react hook), this hook receives intergers to pass to pageIndex for navigation
pagination css class and implement your design.pagination {
display: flex;
padding-left: 0;
list-style: none;
}
ul {
display: block;
list-style-type: disc;
margin-block-start: 1em;
margin-block-end: 1em;
margin-inline-start: 0px;
margin-inline-end: 0px;
padding-inline-start: 40px;
}
import { React, useState } from "react";
import Pagination from "pagination-for-reactjs-component";
import MuiPagination from "pagination-for-reactjs-component/mui";
import "bootstrap/dist/css/bootstrap.min.css";
export default function App() {
const [pageIndex, setPageIndex] = useState(1);
let pageCount = 200;
return (
<>
<div className="container-fluid mx-3">
<h1>You are on page {pageIndex}</h1>
<span>bootstrap design</span>
<Pagination
pageCount={pageCount}
pageIndex={pageIndex}
setPageIndex={setPageIndex}
/>
<span>material ui design</span>
<MuiPagination
pageCount={pageCount}
pageIndex={pageIndex}
setPageIndex={setPageIndex}
/>
</div>
</>
);
}
FAQs
A simple pagination component to use inside your react projects.
We found that reactjs-forpagination demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
The Axios compromise shows how time-dependent dependency resolution makes exposure harder to detect and contain.

Research
A supply chain attack on Axios introduced a malicious dependency, plain-crypto-js@4.2.1, published minutes earlier and absent from the project’s GitHub releases.

Research
Malicious versions of the Telnyx Python SDK on PyPI delivered credential-stealing malware via a multi-stage supply chain attack.