Cloudflare

Serverless Progressive Web Apps using React with Cloudflare Workers

Nov 23, 2018Sevki Hasirci
Serverless Progressive Web Apps using React with Cloudflare Workers
SummaryAI, from the source post

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.

More from the Edge Computing with Cloudflare Workers trail