@thorgate/spa-pagination
v1.0.0-beta.4
Published
> Pagination helper for storing queries to fetch next batch of results.
Downloads
20
Readme
@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} />
)}
/>
);