Today I learned
This page is a place where I will share short pieces of information about things I learn in my day to day life.
March 31, 2020
Replace axios with fetch
Axios is a npm package which makes
http requests easier. At the time axios came out, making http requests in the browser was not really fun and axios made the life of a lot of developers easier.
Since then a lot of things changed. A native fetch API is now available. Kent C. Dodds wrote a blogpost why you might not need axios anymore and can replace it easily with fetch.
Greetings MarcoGo back to other today-I-learned posts