Serverless Progressive Web Apps using React with Cloudflare Workers
Nov 23, 2018Sevki Hasirci

Summary
This post demonstrates how to build isomorphic Progressive Web Apps using React with Cloudflare Workers. It shows how a single JavaScript bundle can be used for server-side rendering on Cloudflare Workers (using ReactDOMServer.renderToString) and client-side hydration in the browser (using ReactDOM.hydrate). It also details how to register a Service Worker using the same bundle to enable offline functionality and caching via the Cache API, effectively turning web pages into PWAs.