Skip to content

Commit 00a5820

Browse files
committed
Fix links.
1 parent 54ce390 commit 00a5820

1 file changed

Lines changed: 11 additions & 8 deletions

File tree

docs/interfaces.md

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,17 +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 range of [configuration options](/api/options) and returns a set of [render props](/api/props).
8-
The way you use these differs slightly between the `useAsync` and `useFetch` hooks, and the `<Async>` component.
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.
9+
10+
[configuration options]: https://docs.react-async.com/api/options
11+
[render props]: https://docs.react-async.com/api/props
912

1013
## `Async` component
1114

1215
```jsx
1316
<Async {...options}>{props => ...}</Async>
1417
```
1518

16-
- [`options`](/options) Configuration options
17-
- [`props`](/props) Render props object
19+
- [`options`][configuration options] Configuration options
20+
- [`props`][render props] Render props object
1821

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

31-
- [`props`](/props) Render props object
32-
- [`options`](/options) Configuration options
34+
- [`props`][render props] Render props object
35+
- [`options`][configuration options] Configuration options
3336

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

45-
- [`props`](/props) Render props object
48+
- [`props`][render props] Render props object
4649
- [`resource`][fetch api] The resource you want to fetch
4750
- [`init`][fetch api] Custom request options
48-
- [`options`](/options) Configuration options
51+
- [`options`][configuration options] Configuration options
4952

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

0 commit comments

Comments
 (0)