cover-3.jpg

Preface

This book aims to be an introduction to Next.js, in particular using its Pages Router.

While Next.js has recently introduced the App Router, which supports React Server components, the Pages Router is still used in countless applications built in the past, and still maintained.

You might work on a project that uses it, or uses both the App Router and the Pages Router at the same time.

If you’re unfamiliar with JavaScript, TypeScript or React, I highly recommend reading my handbooks on those topics.

After reading this book I’d recommend checking out the other books on Web Development freely available on my website.

This book was published in early 2025.

Legal

Flavio Copes, 2025. All rights reserved.

Downloaded from flaviocopes.com.

No part of this book may be reproduced, distributed, or transmitted in any form or by any means, including photocopying, recording, or other electronic or mechanical methods, without the prior written permission of the publisher.

The information in this book is for educational and informational purposes only and is not intended as legal, financial, or other professional advice. The author and publisher make no representations as to the accuracy, completeness, suitability, or validity of any information in this book and will not be liable for any errors, omissions, or delays in this information or any losses, injuries, or damages arising from its use.

This book is provided free of charge to the newsletter subscribers of Flavio Copes. It is for personal use only. Redistribution, resale, or any commercial use of this book or any portion of it is strictly prohibited without the prior written permission of the author.

If you wish to share a portion of this book, please provide proper attribution by crediting Flavio Copes and including a link to flaviocopes.com.

Introduction

Through this book we will learn Next.js, which is in my opinion the best tool to create web applications with React.

And it’s the perfect way to create a Node.js API in a Web Application without maintaining multiple different codebases, like one for the frontend and one for the backend.

We call it a full-stack framework.

Why do we need Next.js on top of React?