Render your application's UI on the client
In Client-Side Rendering (CSR) only the barebones HTML container for a page is rendered by the server. The logic, data fetching, templating and routing required to display content on the page is handled by JavaScript code that executes in the browser/client.
The HTML returned by the server is just a single root div tag with no content. On the client, Javascript populates the HTML, etc.
CSR (and other rendering techniques) enable creating an SPA [[20221128105028-spa-mpa]].
Advantages:
Disadvantages:
There are techniques to improve [[performance]], such as [[20220912112727-lazy-loading]], [[20220911060950-code-splitting]], etc.
[[architecture]] [[deployment]] [[infrastructure]] [[rendering]]