Sweet Pagination - A ReactJS component to render a pagination

Last update: Jul 25, 2022

Sweet Pagination

A ReactJS component to render a pagination.

By installing this component and writing only a little bit of code you can obtain this:

Some Styles

Sweet Pagination Style

Sweet Pagination Style

Sweet Pagination Style

Installation

Install Sweet Pagination with npm:

npm i sweetpagination --save

Usage

{currentPageData.map((item) => (

Item #{item}

))}
); }">
import React, { useState } from "react";
import SweetPagination from "sweetpagination";

function Items() {
  const [currentPageData, setCurrentPageData] = useState(new Array(2).fill());
  // Example items, to simulate fetching from another resources.
  const items = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14];
  return (
    <div>
      {currentPageData.map((item) => (
        <div>
          <h3>Item #{item}</h3>
        </div>
      ))}

      <SweetPagination
        currentPageData={setCurrentPageData}
        dataPerPage={10}
        getData={items}
        navigation={true}
      />
    </div>
  );
}

Copyright © All rights reserved by Jahidul Islam Zim

GitHub

https://github.com/jahidulislamzim/sweetpagination
You might also like...

React components for sorting, filtering and pagination of data.

react-data-components DataTable: Live demo and source SelectableTable: Live demo and source Getting started npm install react-data-components --save T

Jul 28, 2022

Simple pagination for React (MIT)

react-pagify - Simple pagination for React react-pagify provides a simple API for building your own custom paginator. If you want to learn more about

Jun 5, 2022

React - Pagination Example with logic like Google

react-pagination-example React - Pagination Example with Logic like Google To see a demo and further details go to http://jasonwatmore.com/post/2017/0

Jun 7, 2022

simple library for pagination in react

IMPORTANT NOTE This repository is DEPRECATED. Please use react-pagination-js instead which has more added feature and is tested well. React-pagination

Jan 24, 2020

React Pagination using Hooks example

React Pagination using Hooks example Set port .env PORT=8081 Project setup In the project directory, you can run: npm install # or yarn install or C

Apr 20, 2022

Generate a sequence of numbers for use in a pagination system, the clever way.

Generate a sequence of numbers for use in a pagination system, the clever way.

JavaScript Pagination Sequence Generator Generate a sequence of numbers for use in a Pagination Component, the clever way. Installation npm i @bramus/

Jul 10, 2022

React Pagination Bar

React Pagination Bar

React Pagination Bar Lightweight component for pagination of application pages on react Features Customizing class names without using style overrides

Aug 1, 2022

React Paginations component

React Paginations component

react-paginations React Paginations Demo: https://trendmicro-frontend.github.io/react-paginations Installation Install the latest version of react and

May 14, 2019

A ReactJS dumb component to render a pagination

A ReactJS dumb component to render a pagination

react-js-pagination A ReactJS dumb component to render a pagination. The component comes with no built-in styles. HTML layout compatible with Bootstra

Jul 29, 2022

React.js pagination component based on ultimate-pagination

React.js pagination component based on ultimate-pagination

react-ultimate-pagination React.js pagination component based on ultimate-pagination. It's implemented as a higher-order component that allows easy in

Jun 26, 2022

⚛️ React render props component & custom hook for pagination.

Paginated React render props & custom hook for pagination. Features Headless component - There are no restrictions on the ui expression. Style free -

May 22, 2022

A React component to render your pagination navigation

A React component to render your pagination navigation

Dec 12, 2021

Sweet Component that tracks a users progress through a page as they scroll

Sweet Component that tracks a users progress through a page as they scroll

react-page-progress Sweet Component (Yes, This is the one with HOOKS 🚀 ) that tracks a users progress through a page as they scroll Install npm i rea

Jul 9, 2022

A pretty sweet search bar for React Native.

A pretty sweet search bar for React Native.

react-native-searchbar A pretty awesome search bar for React Native. It has a built in simple search capability which can be utilised by handing the c

Jul 30, 2022

A sweet & simple chart library for React Native that will make us feel like We're All Gonna Make It.

A sweet & simple chart library for React Native that will make us feel like We're All Gonna Make It.

react-native-wagmi-charts 💸 A sweet & simple chart library for React Native that will make us feel like We're All Gonna Make It Features 📈 Line char

Jul 23, 2022

A sweet Next.js project template

A sweet Next.js project template. Integrates Redux Toolkit with with test support for Mocha + Chai + React Testing Library and release publishing via release-it.

Jul 17, 2022

Cookie handler with server render - , access the cookie before render.

Cookie Handler for server render with Next.js Main Idea The main idea behind this example is to handle the cookies when the view is render on the serv

Feb 15, 2022

Render and position native windows as simply as you render and position tooltips in your React app.

Portal Windows Render and position windows as simply as you render and position tooltips in your React app. Getting started To use Portal Windows, you

Jul 16, 2022

🌀 React library to safely render HTML, filter attributes, autowrap text with matchers, render emoji characters, and much more.

Interweave Interweave is a robust React library that can... Safely render HTML without using dangerouslySetInnerHTML. Safely strip HTML tags. Automati

Aug 6, 2022
Comments
  • 1. Maximum update depth exceeded

    When I run the example, it works but console shows this error multiple times:

    Warning: Maximum update depth exceeded. This can happen when a component calls setState inside useEffect, but useEffect either doesn't have a dependency array, or one of the dependencies changes on every render. at SweetPagination (http://localhost:3000/static/js/bundle.js:42555:26) at div at App (http://localhost:3000/static/js/bundle.js:88:96)

    Node version: v17.3.0

    Reviewed by wimdenherder at 2022-07-16 06:39
React.js pagination component based on ultimate-pagination
React.js pagination component based on ultimate-pagination

react-ultimate-pagination React.js pagination component based on ultimate-pagination. It's implemented as a higher-order component that allows easy in

Jun 26, 2022
⚛️ React render props component & custom hook for pagination.

Paginated React render props & custom hook for pagination. Features Headless component - There are no restrictions on the ui expression. Style free -

May 22, 2022
A React component to render your pagination navigation

A React component to render your pagination navigation

Dec 12, 2021
A ReactJS component that creates a pagination
A ReactJS component that creates a pagination

react-paginate A ReactJS component to render a pagination. By installing this component and writing only a little bit of CSS you can obtain this: or I

Aug 3, 2022
Simple, lightweight, flexible pagination ReactJS component ⏮⏪1️⃣2️⃣3️⃣⏩⏭
Simple, lightweight, flexible pagination ReactJS component ⏮⏪1️⃣2️⃣3️⃣⏩⏭

React Paginating Motivation During development, we were facing problems supporting server-rendering of our web app & SEO (require pagination links). T

Jun 24, 2022
Laravel Pagination with ReactJS (customizable)

Laravel Pagination with ReactJS (customizable) react-laravel-paginex will provide you ability to easily create pagination from Laravel Pagination obje

Jul 8, 2022
HTML CSS & React - Pagination component
HTML CSS & React - Pagination component

React component to fetch GitHub followers and showcase certain amount at each page with pagination

Jul 15, 2022
react pagination component, simple use
react pagination component, simple use

React-pagination Preview: https://killsanghyuck.github.io/react-pagination/ Install npm install react-pagination-component Configuration totalPage :

Mar 18, 2022
React Pagination Component.

React Pagination Component.

Jul 12, 2022
React Pagination Utils

React Pagination Utils

May 26, 2022