@thorgate/spa-pagination
TypeScript icon, indicating that this package has built-in type declarations

1.0.0-beta.4 • Public • Published

@thorgate/spa-pagination

Pagination helper for storing queries to fetch next batch of results.

Basic Usage

import { Pagination } from '@thorgate/spa-pagination';

const MyConnectedComponent = ({ fetchSomething }) => (
    <Pagination
        name="something"
        trigger={fetchSomething}
        render={({ loadNext }) => (
            <button onClick={loadNext} />
        )}
    />
);

Readme

Keywords

none

Package Sidebar

Install

npm i @thorgate/spa-pagination

Weekly Downloads

0

Version

1.0.0-beta.4

License

MIT

Unpacked Size

13.7 kB

Total Files

8

Last publish

Collaborators

  • thorgate-main
  • jyrno42
  • metsavaht