The Next.js Guide: Pages Router

Next.js is a powerful React framework that enables developers to create server-rendered and statically generated websites. I created this guide to learn the concepts I was struggling with and make it easier for others to understand. I hope it helps!

In this repo you can find the code snippets for:

  • A page implementing getStaticProps and getStaticPaths
  • A page implementing getStaticProps
  • A page implementing getServerSideProps with Client Side fetching
  • A page to demonstrate Hydration Errors
  • Using the api directory to implement our own api routes

Resources

Learning about Hydration

Learning about Next.js

Learning about getServerSideProps and getStaticProps

Learning about Reconciliation