The author wrote this open book to help you quickly learn Next.js and get familiar with how it works.
The ideal reader of the book has zero knowledge of Next.js, has used React in the past, and is looking forward diving more into the React ecosystem, in particular server-side rendering.
I find Next.js an awesome tool to create Web Applications, and at the end of the book I hope you'll be as excited about it as I am.
This open book is licensed under a Open Publication License (OPL). You can download The Next.js Handbook ebook for free in PDF format (8.6 MB).
Table of Contents
Introduction to Next.js
The main features provided by Next.js
Next.js vs Gatsby vs create-react-app
How to install Next.js?
View source to confirm SSR is working
The app bundles
What's that icon on the bottom right?
Install the React Developer Tools
Other debugging techniques you can use
Adding a second page to the site
Linking the two pages
Dynamic content with the router
Using the router to detect the active link
Feed data to the components using getInitialProps
Populating the head tag with custom tags
Adding a wrapper component
Run code only on the server side or client side
Deploying the production version
Deploying on Now
Analyzing the app bundles
Lazy loading modules