0.0.10 • Published 3 years ago

pagelist-react v0.0.10

Weekly downloads
57
License
MIT
Repository
github
Last release
3 years ago

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.

0.0.10

3 years ago

0.0.9

3 years ago

0.0.8

3 years ago

0.0.7

3 years ago

0.0.6

3 years ago

0.0.5

3 years ago