how to install axios in react

Shell
$ npm install axios$ yarn add axiosimport axios from "axios";const instance = axios.create({  baseURL: 'https://some-domain.com/api/',  timeout: 1000,  headers: {'X-Custom-Header': 'foobar'}});
Source

Also in Shell: