Skip to main content

10.04 Creating Axios Instance

Installing axios

npm install --save axios

New axios-orders.js

axios-orders.js
import axios from "axios";

const instance = axios.create({
baseURL:
"https://react-burger-bf7e8-default-rtdb.europe-west1.firebasedatabase.app/",
});

export default instance;