Skip to content

Commit 382ab45

Browse files
committed
Add examples section to root readme
1 parent 32ea8c0 commit 382ab45

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,7 @@ const { isLoading, data } = useFetch("https://swapi.co/api/people/1", {
8282
});
8383

8484
```
85+
See [example](examples/depends).
8586

8687
### Re-call requests
8788
If any element of `depends` changed, request will be re-call. For example, you can use [react-use-trigger](https://github.com/ilyalesik/react-use-trigger) for re-call the request:
@@ -127,6 +128,11 @@ const Component = () => {
127128
};
128129
```
129130

131+
## [Examples](examples)
132+
133+
* [Basic](examples/basic) - Just fetch data with `useFetch`.
134+
* [Depends](examples/depends) - Usage `depends` option for refresh query.
135+
* [Pagination](examples/pagination) - Usage `usePaginationRequest` for infinite scroll implementation.
130136

131137
## API
132138

0 commit comments

Comments
 (0)