Follow these commands to publish your React App to CloudFlare pages, its very simple. If you already installed wrangler and are logged in, you will need only 4 commands
If you haven't logged in or installed wrangler, then you will need these two commands first before the commands above:
List of Command: https://developers.cloudflare.com/workers/wrangler/commands/
After you have published your app, you will receive the url where you app is hosted. it will look something like this:
https://aw28af49.example.pages.dev/
Then publish your app using your custom domain:
Thats it. now you can visit your app to the newly created sub domain: sub.example.com
Example App: /g/SCHOOL/Apps/2022/84-words-kinder
CloudFlare Pricing: https://www.cloudflare.com/plans/developer-platform/