so here are steps for doing #decentralized #web #apps
if you want to use react (because your boss told you its necessary)
- use hashrouter https://reactrouter.com/en/main/router-components/hash-router
- make datauri, like this:
"data:text/html;base64,"$(cat index.html | base64 -w 0)
your app can now be shared without http server
when you need more content, upload it to relays. for small files less than 100 kB #hostr or other simple way of using event content is ok. if there is need for larger files, #filepublish #fileloader #dget gets the job done.
i highly recommend using vanilla js, as your codebase can be 1/100th of the size compared to react app.