@@ -13,7 +13,7 @@ good practice.
1313## Creating an async component with ` useFetch `
1414
1515The easiest way to create an async component for data fetching is through the
16- [ ` useFetch ` hook] ( api/interfaces.md#usefetch-hook ) :
16+ [ ` useFetch ` hook] ( ../ api/interfaces.md#usefetch-hook) :
1717
1818``` jsx
1919import React from " react"
@@ -37,12 +37,12 @@ const App = () => {
3737
3838For most data fetching needs, ` useFetch ` is sufficient. However, sometimes you may want to take full control, for
3939example if you want to combine multiple requests. In this case you can use the
40- [ ` useAsync ` hook] ( api/interfaces.md#useasync-hook ) .
40+ [ ` useAsync ` hook] ( ../ api/interfaces.md#useasync-hook) .
4141
42- The core concept of ` useAsync ` (and React Async in general), is the [ ` promiseFn ` ] ( api/options.md#promisefn ) : a function
43- that returns a ` Promise ` . It's the fundamental concept for modelling asynchronous operations. It enables React Async to
44- take control over scheduling, the Promise lifecycle and things like (re)starting an operation on user action or other
45- changes. We've deliberately chosen the ` Promise ` as our primitive, because it's natively supported and has various
42+ The core concept of ` useAsync ` (and React Async in general), is the [ ` promiseFn ` ] ( ../ api/options.md#promisefn) : a
43+ function that returns a ` Promise ` . It's the fundamental concept for modelling asynchronous operations. It enables React
44+ Async to take control over scheduling, the Promise lifecycle and things like (re)starting an operation on user action or
45+ other changes. We've deliberately chosen the ` Promise ` as our primitive, because it's natively supported and has various
4646utility methods like ` Promise.all ` . That's also why you'll find our terminology closely follows the Promise [ states and
4747fates] .
4848
0 commit comments