October 2019
Intermediate to advanced
426 pages
11h 49m
English
Before we can start using axios and react-request-hook, we have to set up an axios instance and a RequestProvider component.
Let's get started setting up the libraries:
> npm install --save react-request-hook axios
import { RequestProvider } from 'react-request-hook'import axios from 'axios'
const axiosInstance = axios.create({ baseURL: 'http://localhost:3000/api/'})
Read now
Unlock full access