Good user experience, high development efficiency, good rendering performance, good maintainability...
Disadvantage
The first screen rendering time is long, not the server-side rendering is good, but js generates html on the client-side
Not conducive to seo. When the search engine crawls the html content, the html of a single page has no content, and it needs js to parse it to generate the web content
Isomorphic application
The front-end framework code is executed on the server side to generate web content, which is returned to the client, and the client is only responsible for displaying
Through the server-side rendering of the first screen straight out, solve the problem that the spa application's first screen rendering is too slow and not conducive to SEO
Take over page content interaction through customer service side rendering to get a better user experience
This method is usually called modern server-side rendering, also called isomorphic rendering
Applications built in this way are called server-side rendering applications or isomorphic applications
Rendering
Splicing data and templates together, the essence: analysis and replacement of character exchange
Traditional server rendering
Disadvantages of complex web pages
The front-end and back-end codes are completely coupled together, which is not conducive to development and maintenance
There is not enough room for the front end
Server pressure is high
General user experience (refresh every page you visit)
Client rendering
Ajax makes it possible for the client to dynamically obtain data
The backend is responsible for processing the data interface
The front end is responsible for rendering the interface data to the page
The front end is more independent and not restricted by the back end