Answer the question
In order to leave comments, you need to log in
What is react server side rendering for?
if we take a js technology stack (react front, node back), and apply SSR, then as I understand it, the page will be rendered on the server and given to the front, that is, we lighten the load on the client side, but what if I have two client applications? WEB and mobile, I will need the server to return only data and not a page, will SSR not work for me in this option? and in general SSR is an ancient method, everyone switched to SPA in order for everything to work without reloading the page, or am I not understanding SSR correctly, and not the entire page is rendered there, but only those parts that are not obligatory that can be rendered on the client? clarify this for me please.
Answer the question
In order to leave comments, you need to log in
1. SSR is needed in projects for which indexing by search engines is important.
2. Such applications are called not SPA , but isomorphic .
3. SSR in isomorphic applications is used with the REST API , so you won't have any problems with the mobile client.
4. Everything is rendered the same as in SPA only on the server side, after being transferred to the client, the application works like a regular SPA and interacts with the server via the REST API .
SSR is needed by SPA applications for the correct operation of search robots so that they do not rest on an empty template page. In addition, it improves the interface. when the page is loaded at once, and not the layout is first drawn and then the data is loaded, etc.
SSR is only needed for the initial loading of the application, then it behaves like a normal SPA application
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question