What is the difference between:
const Api = () => axios.create({ baseURL: '/api' })
and
const Api = axios.create({ baseURL: '/api' })
?
where:
import axios from 'axios'
is api library link here
What is the difference between:
const Api = () => axios.create({ baseURL: '/api' })
and
const Api = axios.create({ baseURL: '/api' })
?
where:
import axios from 'axios'
is api library link here