react frontend connecting to flask backend Howto
问题 I have a ReactJS front end and a flask backend and I am having difficulties making both talk to each other, particular sending form variables from the frontend to Flask. Given below is my front end code which runs on 127.0.0.1:3000 import ReactDOM from 'react-dom'; import React, { Component } from 'react'; class Form1 extends Component{ render(){ return( <div class="form"> <form action="/result" method="get"> <input type="text" name="place" /> <input type="submit" /> </form> </div> ); } }