# Using React and Next.JS to build a PWA – The Beginner's Guide

Canonical URL: https://aerolab.co/blog/react-nextjs-pwa
Published: 2017-12-12
Author: Roberto González
Last reviewed: 2026-11-19

This historical tutorial builds a Hacker News reader to introduce React, Styled JSX, Next.js and server rendering. Its emphasis is a small, understandable codebase with reusable components.

## What the tutorial covers

The sequence moves from project setup to a first page, component-scoped styles, fetching stories with `getInitialProps`, a shared Layout, comment pages and navigation. It finishes with deployment through the then-current Now service and suggestions for a manifest, service worker and further exercises.

The article explains why initial HTML and metadata help sharing and indexing, how props connect reusable components, and how a page can use fetched data to render links and comments. Its example repository is [Aerolab/nextjs-pwa](https://github.com/Aerolab/nextjs-pwa).

The commands, class-component patterns, Link API, static-file conventions and deployment service reflect 2017. This is an archive of Aerolab's teaching and engineering approach, rather than instructions for implementing a current Next.js application. The tutorial also leaves parts of a complete PWA, including offline behavior, as further work.

For the accompanying product argument, read [Why you should consider building a PWA](https://aerolab.co/blog/pwa.md). For a later real project account, read [Barbijos Azules](https://aerolab.co/blog/webapp-nextjs-strapi-voluntarios-barbijos.md).
