Skip to content

Commit 3e13ec3

Browse files
committed
Fix links.
1 parent fa88098 commit 3e13ec3

File tree

1 file changed

+8
-11
lines changed

1 file changed

+8
-11
lines changed

docs/interfaces.md

+8-11
Original file line numberDiff line numberDiff line change
@@ -4,20 +4,17 @@ React Async provides several ways to use it. The classic interface is through th
44
backwards compatible to React v16.3. More recent React applications will be using hooks, of which two are provided:
55
`useAsync` and `useFetch`. Functionally, `<Async>` and `useAsync` are equivalent. `useFetch` is a special type of `useAsync` which is tied to the native `fetch` API.
66

7-
React Async accepts a wide range of [configuration options][options] and returns a set of [render props][props]. The way
8-
you use these differs slightly between the `useAsync` and `useFetch` hooks, and the `<Async>` component.
9-
10-
[options]: https://docs.react-async.com/api/options
11-
[props]: https://docs.react-async.com/api/props
7+
React Async accepts a wide range of [configuration options](options.md) and returns a set of [render props](props.md).
8+
The way you use these differs slightly between the `useAsync` and `useFetch` hooks, and the `<Async>` component.
129

1310
## `Async` component
1411

1512
```jsx
1613
<Async {...options}>{props => ...}</Async>
1714
```
1815

19-
- [`options`][options] Configuration options
20-
- [`props`][props] Render props object
16+
- [`options`](options.md) Configuration options
17+
- [`props`](props.md) Render props object
2118

2219
> We recommend that you pass the options individually, rather than using JSX [spread attributes]. React Async uses
2320
> [render props] to return its state back to you, so it can be used by other components further down the tree.
@@ -31,8 +28,8 @@ you use these differs slightly between the `useAsync` and `useFetch` hooks, and
3128
const props = useAsync(options)
3229
```
3330

34-
- [`props`][props] Render props object
35-
- [`options`][options] Configuration options
31+
- [`props`](props.md) Render props object
32+
- [`options`](options.md) Configuration options
3633

3734
> We recommend that you pass `options` as an inline object literal, and that you [destructure] the `props` object to
3835
> extract the properties you need, unless you have multiple instances in the same component.
@@ -45,9 +42,9 @@ const props = useAsync(options)
4542
const props = useFetch(resource, init, options)
4643
```
4744

48-
- [`props`][props] Render props object
45+
- [`props`](props.md) Render props object
4946
- [`resource`][fetch api] The resource you want to fetch
5047
- [`init`][fetch api] Custom request options
51-
- [`options`][options] Configuration options
48+
- [`options`](options.md) Configuration options
5249

5350
[fetch api]: https://developer.mozilla.org/en-US/docs/Web/API/WindowOrWorkerGlobalScope/fetch#Syntax

0 commit comments

Comments
 (0)