3 ms·
If you don't need server rendering, I'd just recommend React without framework, and Vite [1] to run the app in dev and build the app in prod, then host the buil
by ggregoire 1y ago
If you don't need server rendering, I'd just recommend React without framework, and Vite [1] to run the app in dev and build the app in prod, then host the build (basically a HTML page with a JS file) on AWS S3 or similar static hosting platforms. That's the solution I've been using for 10+ years without any problem.
For the backend you can use whatever you are comfortable with. I mostly use PostgREST [2] nowadays. I recommend to use react-query [3] to call your APIs on the client side.
[1] https://vite.dev https://vite.dev
[2] https://docs.postgrest.org https://docs.postgrest.org
[3] https://tanstack.com/query/latest/docs/framework/react/overview https://tanstack.com/query/latest/docs/framework/react/overv...
- pfych 1y agoThis is the way to go for 99.9% of React apps, I've been using a similar setup for almost 7 years now. Plain React, Vite, React-Router, & SWR. Is simple & works great for almost every use case.