Post for today

March 14, 2023

const sum = (num1: number, num2: number): number => {
    return num1 + num2;
}
console.log(sum(4,8));

Next.js has two forms of pre-rendering: Static Generation and Server-side Rendering. The difference is in when it generates the HTML for a page.

Importantly, Next.js lets you choose which pre-rendering form to use for each page. You can create a "hybrid" Next.js app by using Static Generation for most pages and using Server-side Rendering for others.

Related:

🔙 Back to Home