DEV Community

柳轶霖
柳轶霖

Posted on

Is that possible send a fetch/axios request via server side network in React?

Hi:
As a newbie of React,i'm currently building a web app that need such below actions:

Image description

Although currently i use Python to build a Proxy server,yet i wanna use "pure js" to build my project,is it possible?Let me know and huge thanks.

Top comments (1)

Collapse
 
aquamanly profile image
aquamanly

How it generally works is:
You create a button in react that calls a fetch request. Since react is front end, that's as far as it goes.

You'd need to have an api to connect to in that case.

As for Axios, I don't recall ever using it. So someone else might have to help you out there.

If you need any more help, lemme know. I can probably pair code with you.

Billboard image

Create up to 10 Postgres Databases on Neon's free plan.

If you're starting a new project, Neon has got your databases covered. No credit cards. No trials. No getting in your way.

Try Neon for Free →