Parcel + Cloudflare Workers + React Server Component widget example
This widget is rendered by a React Server Component within a Cloudflare Worker.
It demonstrates how to fetch data live from an external source and render it within a React Server Component, which is something that hasn't been possible in normal Page Builder widgets before!.
Here is a client component:
This form submits a server action.
Here's the current time:
ISO: 2025-08-05T00:48:12.914Z
Local: 8/5/2025, 12:48:12 AM
(fetched live from https://some-time-api-451041921684.us-central1.run.app/ and cached for 10 seconds by Cloudflare)