
Product
Introducing Socket Firewall: Free, Proactive Protection for Your Software Supply Chain
Socket Firewall is a free tool that blocks malicious packages at install time, giving developers proactive protection against rising supply chain attacks.
react-hot-pagination
Advanced tools
<!-- ALL-CONTRIBUTORS-BADGE:START - Do not remove or modify this section --> [](#contributors-) <!-- ALL-CONTRIBUTORS-BADGE:END -->
import * as React from 'react';
import * as ReactDOM from 'react-dom';
import { Paginate } from 'react-hot-pagination';
const App = () => {
const [current, setCurrent] = React.useState(1);
const handlePagination = (value: number) => setCurrent(value);
return (
<div>
<Paginate
current={current}
handlePagination={handlePagination}
range={2}
total={30}
components={{}}
/>
</div>
);
};
ReactDOM.render(<App />, document.getElementById('root'));
npm i react-hot-pagination
Or
yarn add react-hot-pagination
These docs are inspired by react-flex-ready docs
range total current
Option | Default | Type | Description |
---|---|---|---|
range | 2 | {number} | Pages shown before after the current page |
total | 20 | {number} | Total pages |
current | 1 | {number} | Current page |
components | {object} | your Button, Separator, LeftArrow and RightArrow components | |
handlePagination | {(value: number) => void} | Your custom handle function to update the current page |
This project is licensed under the MIT License - see the LICENSE.md file for details
Elbarae Rguig 💻 📖 | DRISSI TOUBBALI Fadel 💻 |
If you love this React component and want to support me, you can do so through my Patreon or GitHub sponsors.
FAQs
<!-- ALL-CONTRIBUTORS-BADGE:START - Do not remove or modify this section --> [](#contributors-) <!-- ALL-CONTRIBUTORS-BADGE:END -->
We found that react-hot-pagination 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.
Product
Socket Firewall is a free tool that blocks malicious packages at install time, giving developers proactive protection against rising supply chain attacks.
Research
Socket uncovers malicious Rust crates impersonating fast_log to steal Solana and Ethereum wallet keys from source code.
Research
A malicious package uses a QR code as steganography in an innovative technique.