pagelist-react
v0.0.10
Published
```js import {PageList} from 'pagelist-react'
Downloads
12
Readme
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.