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
  • 12,531
  • 35
  • 100
  • 167

0 Answers0