How to use the @times-components/pagination.withPageState function in @times-components/pagination

To help you get started, we’ve selected a few @times-components/pagination examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github newsuk / times-components / packages / author-profile / src / author-profile.js View on Github external
page={page}
              pageSize={pageSize}
              refetch={refetchArticles}
              showImages={hasLeadAssets}
            />
          
        );
      }}
    
  );
};

AuthorProfile.propTypes = propTypes;
AuthorProfile.defaultProps = defaultProps;

export default withPageState(authorProfileTrackingContext(AuthorProfile));
github newsuk / times-components / packages / topic / src / topic.js View on Github external
page={page}
              pageSize={pageSize}
              refetch={refetchArticles}
              showImages
            />
          
        );
      }}
    
  );
};

Topic.propTypes = propTypes;
Topic.defaultProps = defaultProps;

export default withPageState(topicTrackingContext(Topic));

@times-components/pagination

The pagination package provides a pagination user interface (UI) and pagination state Higher Order Component (HOC). These two exports are both required for pagination to work. This package is currently only used by article list pages (author profile and t

BSD-3-Clause
Latest version published 6 months ago

Package Health Score

78 / 100
Full package analysis