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
figuring things out
hey Faruq, 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.