Yes it's true, but this can apply to any library and frameworks. Vanilla is always lighter except for the amount of boilerplate code it can bring. And fetch can bring a tons of boilerplate.
I'll cut 3KB (gzipped) on the framework any day to have a good base for the service layer.
Well, axios is 12.6KB minified.
Native fetch is 0KB minified. ;)
Yes it's true, but this can apply to any library and frameworks. Vanilla is always lighter except for the amount of boilerplate code it can bring. And fetch can bring a tons of boilerplate.
I'll cut 3KB (gzipped) on the framework any day to have a good base for the service layer.
I guess priorities differ.
Im not willing to import 12KB of abstractions to use one/two methods of it and i didnt find fetch to bring a lot of boilerpate for me.