Minha imagem

Eduardo Rocha

Data Fetching Overview

Data fetching in Next.js allows you to render your content in different ways, depending on your application's use case. These include pre-rendering with Server-side Rendering or Static Generation, and updating or creating content at runtime with Incremental Static Regeneration.

  • SSR: Server-side rendering: Learn more about server-side rendering in Next.js with getServerSideProps.

  • SSG: Static-site generation Learn more about static site generation in Next.js with getStaticProps.

  • CSR: Client-side rendering Learn more about client side rendering in Next.js with SWR.

  • Dynamic routing Learn more about dynamic routing in Next.js with getStaticPaths.

  • ISR: Incremental Static Regeneration Learn more about Incremental Static Regeneration in Next.js.