I am new to this kind of react flask setup and have followed multiple tutorials but none seems to work for me. All I want to have is get data sent from flask in react app.
My current setup looks like this for App.js.
I have also added "proxy":"http://localhost:5000/", in package.json
And flask page looks like this
and this is how my react page is showing
I can’t get my values get updated
3
Answers
The issue was with having two servers and I resolved this issue by making changes in server side config which is flask by using CORS from flask_cors
there is problem in your flask code , you have added only route but you have’t specified method i think ..
To start debugging, I would suggest looking at your dev console under the network tab to see what request your javascript is making and also in the javascript console to see if the server is responding with any kind of error.