The Axios API, as an 800 byte Fetch wrapper ↦
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][fetch], which is supported in all modern browsers and polyfilled by most tools including Next.js, Create React App and Preact CLI.
Of course, you could always use Axios directly if/when you can justify the dependency.
Discussion
Sign in or Join to comment or subscribe