How to create axios interceptors in a separate file in ReactJS

Viewed 138

I would like to put my interceptors in a separate file instead of the default App.js so it's easier to manage and so I can keep my App.js file cleaner.
However I can't figure out how to achieve this.

0 Answers
Related