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,526
  • 39
  • 113
  • 193

0 Answers0