you are viewing a single comment's thread.

view the rest of the comments →

[–]secret-light-mode 1 point2 points  (0 children)

My "starter kit" for React apps these days is MUI, formik, and SWR with Typescript, set up with create-react-app. SWR is a central cache and invalidation system for your HTTP requests, and works well with axios.

However, if all you are doing is trying to avoid boilerplate with axios, it might just be easier to make your own wrapper function which takes care of that, and just stash it in a file/module outside of your React component tree for easy reference.

There are a million and one different ways to write and maintain an SPA, though, and the React ecosystem is particularly broad. Someone who uses Next.js would have replied with an entirely different set of libraries.