DEV Community

Discussion on: How To Use Axios in an Optimized and Scalable Way With React

Collapse
 
solsen_tl profile image
Steven Olsen

I recommend using fetch everywhere, as axios can become bundle bloat for UIs. You just don't need it, really.

Collapse
 
sajidali2444 profile image
Sajid Ali

exactly you are correct, but how we can use interceptor in fetch ?
personally I like to use fetch

Some comments have been hidden by the post's author - find out more