if frontend and backend use 2 different localhost, how to connect

Viewed 36

if I use Jupyter to run as my backend and have a localhost, and on the other side I have a react app also have a localhost that direct to the web page. How can I connect these both? Did I need to turn my python code into flask and connect the api to react? Or is there any other ways to do it?

0 Answers
Related