Posts

Showing posts with the label seo

Understanding Rendering Methods SSR, CSR, SSG, ISR in NextJS

Image
Introduction NextJS provides multiple flexible rendering methods, helping optimize performance and SEO for web applications. Below is an introduction to these methods along with their main advantages: Server-Side Rendering (SSR): Data is fetched and rendered into complete HTML on the server for each request. This HTML is then sent to the client. Better for SEO, faster First Contentful Paint (FCP) on the client, suitable for frequently changing data. Client-Side Rendering (CSR): The browser downloads a blank HTML file and a JavaScript file. JavaScript then runs on the client to fetch data and render the content. Smooth user experience after the first load, reduces server load, suitable for pages requiring high interactivity and data that does not need SEO. Static Site Generation (SSG): HTML is pre-rendered at build time (when running the next build command). These static HTML files are served for every request. Extremely high performance, fastest response time, excellent SEO, low server...

NextJS Practice Series

Image
Introduction NextJS is a powerful React framework that enables developers to build high-performance web applications with features like Server-Side Rendering (SSR) and Static Site Generation (SSG). Key advantages include improved SEO, automatic code splitting for faster page loads, a built-in routing system, and an optimized developer experience with "Fast Refresh" and easy deployment through platforms like Vercel. Prerequisites NextJS framework is primarily used for building web applications based on ReactJS and is supported with many more features, so if you only have a need to create a Single Page Web Application or have never started with React , you should look up some basic knowledge before continuing with the posts in this series. Detail Using styled-components in Next Applications User Guide for Zustand Understanding React Server Component Guide to Using NextJS App Router Guide to using NextJS Parallel and Intercepting Routes Understanding Rendering Methods SSR, CSR, ...