use react + Flask to build a small website, generally read "in-depth understanding of Flask".
after using react, the backend template jinja and routing no longer need to be learned?
use react + Flask to build a small website, generally read "in-depth understanding of Flask".
after using react, the backend template jinja and routing no longer need to be learned?
you don't have to learn jinja, but you still need to learn routing, because a backend service generally does not provide only one API, and some parameters of REST API are also placed in URL, such as requesting the weather of a region. API, such as city
after https://www.example.com/api/weather/{city}
, enter whatever you like. For example, https://www.example.com/api/weather/shanghai
, defines such a route in Flask
https://www.example.com/api/w.', requests through parameters, and then it is convenient to use request.arg.get ('city')
in the program.
so you still need to learn about routing .