I have done some projects before, and the general structure of the project is like this. the back end uses express framework to provide api, the front end express integrates swig template, renders pages, and then uses dot template to interact with back end data through ajax. later, I looked at reach and reflux. if my project wants to use reach, which part of the project is responsible for this reach?
I am also a novice, I have checked the information:
ReactIs it designed for single page use?Most of the results of the search pointed out that
ReactMainly for the construction of large single-page business. The front-end interface consists of
ReactFull responsibility, Single page application’s jump by
react-routerResponsible for the state management and data loading of front-end pages
fluxYou can be responsible for. Back end still in use
apiThe authentication of user login is also used at the back end.
Express plus passportSuch as completion (the back end can still use server-side rendering to speed up the user’s first visit to the home page).
On the whole, that’s it. There’s too much nonsense …
In short:Any interface-related writing and interaction can be handed over to
reactAnd the relevant libraries in its ecological circle, the back end will provide data, and verification is enough.