4 ms·
I use all of those things, and cannot fathom why someone would feel like they need to reach for something other than `fetch`. Is adding `{ method: “POST” }` or
by kingdomcome50 6y ago
I use all of those things, and cannot fathom why someone would feel like they need to reach for something other than `fetch`. Is adding `{ method: “POST” }` or using `URLSearchParams` really that hard?
I’ve never used axios, but I do see it often used in examples on the web, and every time I wonder why someone would feel like they need to save maybe 1-3 LoC at the expense of an example that doesn’t need a dependency (i.e. could be pasted into the console)
Looking at the axios API now... it’s basically a passthru to `fetch` that defaults to JSON. It’s so thin! And at 346kB unpacked it’s almost twice the size of React... think about that for a second.
- nailer 6y agoTheyre not hard, they're unnecessary effort and bloat for every single request. You can write your own wrapper, or use someone else's. But DRY and avoid all the boilerplate on every request.
- kingdomcome50 6y ago> they're unnecessary effort and bloat for every single request Oh the irony!