DEV Community

Cover image for How to Use Axios to Make HTTP Requests – GET, POST and Parallel Requests

How to Use Axios to Make HTTP Requests – GET, POST and Parallel Requests

ryan-cal on June 21, 2019

Almost every web-based application that does anything substantial performs some kind of HTTP requests. In this article, we will be going over a ver...
Collapse
 
pavelloz profile image
Paweł Kowalski

Typo alert :)

axios.get('requestUrl)
Enter fullscreen mode Exit fullscreen mode

PS. Im pretty sure there is a way to pass query params in form of JSON, instead of keeping URLs long and dirty.
Read more: github.com/axios/axios#request-config

Collapse
 
pavelloz profile image
Paweł Kowalski

Ouh! And it seems like you can highlight js code in your post by adding js (and shell) to triple backticks - it should be easier to read.

Collapse
 
ryancal profile image
ryan-cal

Thanks for calling this out.