Axios has a great API that developers love. Redaxios provides that API in 800 bytes, using native
fetch()
.For those searching for ways to shave a few kilobytes off of their bundles, that’s less than 1/5th of the size. This is made possible by using the browser’s native Fetch API, which is supported in all modern browsers and polyfilled by most tools including Next.js, Create React App and Preact CLI.
To swith from axios to redaxios, you only need to adjust your import statement
import axios from 'redaxios';
// That's it! Use as you would normally