Hacker News new | ask | show | jobs
by ggregoire 374 days 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

[2] https://docs.postgrest.org

[3] https://tanstack.com/query/latest/docs/framework/react/overv...

1 comments

This 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.