pagelist-react

0.0.10 • Public • Published

Description: This is a react component, using react-router-dom component under the hood.

Example usage of PageList component.

import {PageList} from 'pagelist-react'

export default function App() {
	
  const list = [
    ["/posts", <PostsApp />],
    ["/post/:postId", <Post />],
    ["/time", <Time />],
    ["/testing", <Testing />],
    ["/createPost", <CreatePostApp />],
    ["/paginated", <PaginatedPosts />],
    ["/infinitequeries", <InfiniteQueriesApp />],
    ["/setquerydata", <SetQueryData />],
    ["/optimisticUpdate", <OptimisticUpdate />],
    ["/optimisticFails", <OptimisticFails />],
    ["/number-app", <RandomNumberApp />],
    ["/", "Home"],
  ];

  return <PageList list={list} />;
}

Codesandbox example soon to come here.

Readme

Keywords

none

Package Sidebar

Install

npm i pagelist-react

Weekly Downloads

2

Version

0.0.10

License

MIT

Unpacked Size

2.28 kB

Total Files

5

Last publish

Collaborators

  • sahilrajput03