My FeedDiscussionsHeadless CMS
New
Sign in
Log inSign up
Learn more about Hashnode Headless CMSHashnode Headless CMS
Collaborate seamlessly with Hashnode Headless CMS for Enterprise.
Upgrade ✨Learn more

How do we make ajax call in a react app?

Ankit Singhaniya's photo
Ankit Singhaniya
·Nov 23, 2016

I have been using $ jQuery in my hybrid app for making ajax calls. Now I am creating a single page app, using react. I will want to have the ability to make ajax request to the API, but I don't want to include jQuery just for this.

What are the recommended libraries or way to approach this? I have heard some buzz about axios.