---
title: "Discussion on \"Consuming REST API in React with Axios\" | Hashnode"
description: "Discussion on \"Consuming REST API in React with Axios\". Welcome to last part of this series. Here we'll be creating the frontend for the Notes application. Familiarity with react is needed for this tutorial but you dont need to be an expert, basic knowlegde is good enough for you to follow and understand...."
url: "https://hashnode.com/posts/consuming-rest-api-in-react-with-axios/619cf24306cdc0324d914752"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Consuming REST API in React with Axios](https://nagatodev.hashnode.dev/consuming-rest-api-in-react-with-axios?utm_source=hashnode&utm_medium=feed)

Welcome to last part of this series. Here we'll be creating the frontend for the Notes application. Familiarity with react is needed for this tutorial but you dont need to be an expert, basic knowlegde is good enough for you to follow and understand....

Nov 23, 2021 · 13 min read · nagatodev.hashnode.dev  
Updated Jan 20, 2022  
Read the article

-   [#javascript](https://hashnode.com/tag/javascript)
-   [#reactjs](https://hashnode.com/tag/reactjs)
-   [#web-development](https://hashnode.com/tag/web-development)
-   [#django](https://hashnode.com/tag/django)
-   [#python](https://hashnode.com/tag/python)

## Written by

[Faruq Abdulsalam](https://hashnode.com/@NagatoDev)

@NagatoDev · Lagos State, Nigeria

  
[View profile](https://hashnode.com/@NagatoDev)

Web Developer

I am a full stack web/software developer from Nigeria.

## Responses 1

Markdown supported · ⌘↵ to post

[Deepak Rawat](https://hashnode.com/@abcdeepakr)

[Nov 23, 2021](https://hashnode.com/posts/consuming-rest-api-in-react-with-axios/619cf24306cdc0324d914752/comment/619d47aafa52cd31fe52d20a)

hey [Faruq](https://hashnode.com/@NagatoDev), nicely articulated, i have this doubt regarding react, when do we make the api calls should be made with react only with in-sensitive data right, because react code is available in the browser

also imagine you are performing a large operation, like binary search on 2lakh json objects, will you do that in the react code, or perfrom that on the backend and send the data on the frontend

hope you understood what i am trying to say. cheers, once again, great blog.

[Faruq Abdulsalam](https://hashnode.com/@NagatoDev)

[Nov 23, 2021](https://hashnode.com/posts/consuming-rest-api-in-react-with-axios/619cf24306cdc0324d914752/comment/619d47aafa52cd31fe52d20a#reply-619d726f1a07d7765ae861ee)

Hello Deepak. Thank you for reading.

In my own opinion it’s best to handle public API calls on the server side. However, if you won't be manipulating or processing the received response, you can make the call on the frontend.

For example: If you are querying GitHub’s API just to display a user’s list of repositories, you can simply make the API call on the frontend. But if you want to do something complex with the received response, It is better to make the API call on the backend.

[Deepak Rawat](https://hashnode.com/@abcdeepakr)

[Nov 24, 2021](https://hashnode.com/posts/consuming-rest-api-in-react-with-axios/619cf24306cdc0324d914752/comment/619d47aafa52cd31fe52d20a#reply-619e6cee63587e7e6c9df437)

[Faruq](https://hashnode.com/@NagatoDev) , got it, thanks a lot
