DEV Community

Discussion on: What is AXIOS and How To Use it!

Collapse
 
judecodes profile image
Cool

Hey if you don't mind I've seen a lot of api request where they also insert with parameters inside of it.
Can you explain why a lot of people use it and why its use?

Like this example you have
axios.get('api.fightpoverty.online/api/city’, {
params: {
page: 2
}

Collapse
 
veewebcode profile image
VeeWeb Code

It's used to send data to back-end and the back-end will query data from database with the params.