October 2019
Intermediate to advanced
426 pages
11h 49m
English
This Hook can be used to implement asynchronous data loading via requests in our application. We can use it as follows:
import { useRequest } from 'react-request-hook'const [profile, getProfile] = useResource(id => ({ url: `/user/${id}`, method: 'GET' })
As we can see, using a special Hook for dealing with fetching data is quite simple.
Read now
Unlock full access