use-effect

Fetching data using React to a Python backend

Fetching data using React to a Python backend Question: I am using python (bottle framework) as backend and React as frontend. I want to fetch data from React through "http://127.0.0.1:8080/" using useEffect Hook. The problem is I keep getting: Here is my backend (python) @get(‘/’) def _(): data = { ‘name’: ‘Alvin’, ‘lastname’: ‘Johnson’ } …

Total answers: 1