FRONTEND RENDERING STRATEGIES: What is CSR, SSR, SSG, ISR and which framework does it better ?
๐๐) ๐๐๐ ๐ฌ๐ญ๐๐ง๐๐ฌ ๐๐จ๐ซ ๐๐ฅ๐ข๐๐ง๐ญ ๐๐ข๐๐ ๐๐๐ง๐๐๐ซ๐ข๐ง๐ . ๐๐๐ซ๐ ๐ญ๐ก๐ ๐๐ง๐ญ๐ข๐ซ๐ ๐ฐ๐๐๐ฌ๐ข๐ญ๐ ๐ข๐ฌ ๐ซ๐๐ง๐๐๐ซ๐๐ ๐ข๐ง ๐ญ๐ก๐ ๐๐ซ๐จ๐ฐ๐ฌ๐๐ซ.
Use when building an admin dashboard, and when SEO is not important.
It requires JavaScript to be enabled on the browser.
- Angular, React, Vue all support it out of the box.
๐๐) ๐๐๐ ๐ฌ๐ญ๐๐ง๐๐ฌ ๐๐จ๐ซ ๐๐๐ซ๐ฏ๐๐ซ ๐๐ข๐๐ ๐๐๐ง๐๐๐ซ๐ข๐ง๐ . ๐๐๐ซ๐ ๐ญ๐ก๐ ๐ฐ๐๐๐ฉ๐๐ ๐๐ฌ ๐๐ซ๐ ๐ซ๐๐ง๐๐๐ซ๐๐ ๐จ๐ง ๐ญ๐ก๐ ๐ฌ๐๐ซ๐ฏ๐๐ซ ๐๐ง๐ ๐ญ๐ก๐๐ง ๐ฌ๐๐ง๐ญ ๐ญ๐จ ๐ญ๐ก๐ ๐๐ฅ๐ข๐๐ง๐ญ.
Use when speed and SEO are important.
App works without the need of JavaScript to be enabled in the browser.
- Angular supports it via Angular Universal
- React via NextJS
- Vue via NuxtJS
๐๐) ๐๐๐ ๐ฌ๐ญ๐๐ง๐๐ฌ ๐๐จ๐ซ ๐๐ญ๐๐ญ๐ข๐ ๐๐ข๐ญ๐ ๐๐๐ง๐๐ซ๐๐ญ๐ข๐จ๐ง. ๐๐๐ซ๐ ๐ญ๐ก๐ ๐ฐ๐๐๐ฉ๐๐ ๐๐ฌ ๐๐ซ๐ ๐ซ๐๐ง๐๐๐ซ๐๐ ๐จ๐ง ๐ญ๐ก๐ ๐๐ฎ๐ข๐ฅ๐ ๐ญ๐ข๐ฆ๐.
Use when speed and SEO are important.
Host the app on any static hosting (netlify/vercel).
- Angular supports it via Scully/Angular Universal
- React via NextJS/Gatsby
- Vue via NuxtJS/Gridsome
๐๐) ๐๐๐ ๐ฌ๐ญ๐๐ง๐๐ฌ ๐๐จ๐ซ ๐๐ง๐๐ซ๐๐ฆ๐๐ง๐ญ๐๐ฅ ๐๐ญ๐๐ญ๐ข๐ ๐๐๐ ๐๐ง๐๐ซ๐๐ญ๐ข๐จ๐ง. ๐๐๐ซ๐ ๐ญ๐ก๐ ๐ฐ๐๐๐ฉ๐๐ ๐๐ฌ ๐๐ซ๐ ๐ซ๐๐ ๐๐ง๐๐ซ๐๐ญ๐๐ ๐จ๐ง ๐ญ๐ก๐ ๐๐ฅ๐ฒ ๐๐๐ฌ๐๐ ๐๐๐ญ๐๐ซ ๐ญ๐ก๐ ๐๐๐๐ข๐ง๐๐ ๐ญ๐ข๐ฆ๐.
Same benefits as SSG.
Entire app doesn't need to be build after each change.
- Angular doesn't support it
- React via NextJS
- Vue doesn't support it