This is a very minimal example/template built via npm create vite
using the Vite React TS starting template (with very minimal tweaks) which allows the application to work with Cloudflare Pages Functions during local development by using the wrangler-pages-functions-dev
Vite Plugin.
To try this example install its dependencies:
$ npm i
and simply run:
$ npm run dev