Ask HN: Htmx or SPA
I'm a CTO & co-founder of an early stage fintech start-up (EU). We have to build our MVP for February and other founders. We have some funds (<1M).
Our product has very little interaction and reactiveness: it's primary a dashboard with a lot of backend logic (AI). I'm choosing the tech stack: Django will be the foundation, since I'm primary a django dev and other co-founders know python.
I'm in the middle of a front-end blues: should we go with a React SPA (+nextjs) or choose html + htmx?
I've read a lot on htmx and looks like a very good technology. I also used it in some hobby projects and fell in love. I have very poor React experience, but I know it's roaring in the FE market.
Just wondering if anyone used htmx as primary FE tech and want to share feedback. Thanks in advance folks!
8 comments
[ 2.9 ms ] story [ 27.1 ms ] threadAlso, will you need to support an API product or a mobile frontend? Either of those could change the calculus in favor of React or something similar.
I wish there were a more stable frontend framework that didn’t require constant maintenance.
For work, we're moving an existing homebrewed system to one of these: https://mui.com/store/#populars
It builds on top of MUI, which is a collection of ready-to-use React UI widgets that are pretty well designed (based on Material) and implemented in terms of UX/UI details. If you're not familiar with those nuances, MUI gives you a very good starting point that will meet 90% of needs out of the box, but is still very extensible if you ever do need to customize something. The one downside is that your dashboard can end up looking a bit generic, "Material" style, but that's easily fixed with some CSS tweaks here and there. The reverse, starting from a CSS-only theme and building up around it, is much harder.
Then the dashboard templates build further on top of that to give you ready to use data widgets that you can just hook up to your backend. I think using something like this can save you hundreds of hours from not having to reinvent frontend basics for a basic dashboard. Just my 2¢.