Sign in
Log inSign up

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.

Hassle-free blogging platform that developers and teams love.
  • Docs by Hashnode
    New
  • Blogs
  • AI Markdown Editor
  • GraphQL APIs
  • Open source Starter-kit

© Hashnode 2024 — LinearBytes Inc.

Privacy PolicyTermsCode of Conduct