The Axios library is over 1000 lines of code, while your xhr example is less than 20.
Naythaniel Williams

Axios adds less than 5KB to your gzipped bundle, I’d say if you want to ship less code there are probably a few better candidates. Also, if this is so important to you, there are many other more lightweight alternatives.

Like what you read? Give Shahar Talmi a round of applause.

From a quick cheer to a standing ovation, clap to show how much you enjoyed this story.