Answer the question
In order to leave comments, you need to log in
How to render an application on the server?
I have one big question, so I'll break it down into several smaller ones.
1. How to render on the server, what is needed for this?
2. In what cases is a render done on the server? That is, I understand that the primary task is search robots, but are there any other advantages? And do they make it so that the server gives html to robots, and json to users? If so, how and under what circumstances is it beneficial?
3. If the render is on the server, do I need to do routing on the client? If it is necessary and if it is not necessary, then how to make routing on a client without a grate #?
Answer the question
In order to leave comments, you need to log in
The first, in short, is to use renderToString , but there is a lot to do around all this, such as saving state for the client.
Secondly, this is one of the positive components, another positive side will be a faster display of the application to the user, without waiting until all the data is loaded.
Thirdly, on the client, routing is needed so that for each gesture the entire application is not reloaded, but done using the HistoryApi of browsers
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question