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-06-19T07:21:22.701Z
Local: 6/19/2025, 7:21:22 AM
(fetched live from https://some-time-api-451041921684.us-central1.run.app/ and cached for 10 seconds by Cloudflare)