Skip to content

Commit fa88098

Browse files
committed
Fix links.
1 parent 00a5820 commit fa88098

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

docs/interfaces.md

+10-10
Original file line numberDiff line numberDiff line change
@@ -4,20 +4,20 @@ 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] and returns a set of [render props]. The way you use these
8-
differs slightly between the `useAsync` and `useFetch` hooks, and the `<Async>` component.
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.
99

10-
[configuration options]: https://docs.react-async.com/api/options
11-
[render props]: https://docs.react-async.com/api/props
10+
[options]: https://docs.react-async.com/api/options
11+
[props]: https://docs.react-async.com/api/props
1212

1313
## `Async` component
1414

1515
```jsx
1616
<Async {...options}>{props => ...}</Async>
1717
```
1818

19-
- [`options`][configuration options] Configuration options
20-
- [`props`][render props] Render props object
19+
- [`options`][options] Configuration options
20+
- [`props`][props] Render props object
2121

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

34-
- [`props`][render props] Render props object
35-
- [`options`][configuration options] Configuration options
34+
- [`props`][props] Render props object
35+
- [`options`][options] Configuration options
3636

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

48-
- [`props`][render props] Render props object
48+
- [`props`][props] Render props object
4949
- [`resource`][fetch api] The resource you want to fetch
5050
- [`init`][fetch api] Custom request options
51-
- [`options`][configuration options] Configuration options
51+
- [`options`][options] Configuration options
5252

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

0 commit comments

Comments
 (0)