sanjar-notes / frontend

The basics - HTML, CSS, Javascript, browser APIs, performance
3 stars 0 forks source link

Add notes about axios - it's a simple but vital software #99

Open sanjarcode opened 1 year ago

sanjarcode commented 1 year ago
  1. axios works the same way on web, mobile (android, ios) and Node (TBD)
  2. The implicit way to pass headers, query params and payloads.
  3. Auto content-type.
  4. File handling part is also partially handled
  5. interceptors are simple to use

of course, await-to-js combined with axios makes code very simple (compared to try catch)