Using Axios Cancel and AbortController for Fetch, we can cancel/abort request if required
- The server is built using Express, cd server then npm start to run the server
- The React app is built using CRA, cd client then npm start
The requests are made in the client/src/App.js file.
There are two types of request being made one usinf axios and other using fetch. They are kept in the client/src/apis folder
- api.js contains the Fetch example
- axiosInstance.js contains the Axios example