0

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

ace
  • 11,956
  • 37
  • 107
  • 179

0 Answers0