TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Ask HN: Htmx or SPA

6 点作者 besil超过 2 年前
I&#x27;m a CTO &amp; 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 (&lt;1M).<p>Our product has very little interaction and reactiveness: it&#x27;s primary a dashboard with a lot of backend logic (AI). I&#x27;m choosing the tech stack: Django will be the foundation, since I&#x27;m primary a django dev and other co-founders know python.<p>I&#x27;m in the middle of a front-end blues: should we go with a React SPA (+nextjs) or choose html + htmx?<p>I&#x27;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&#x27;s roaring in the FE market.<p>Just wondering if anyone used htmx as primary FE tech and want to share feedback. Thanks in advance folks!

5 条评论

rlawson超过 2 年前
I helped scale a startup from less than 10 to 200 people as CTO, doesn&#x27;t make me an expert but means I understand the pressure you are under. Time is your most precious resource.<p><pre><code> 1. Just get it working without any js. 2. Go back and sprinkle htmx for interactivity if you have time. 3. Launch and start making money 4. If you need even more bling - hire some FE devs and go to town (only *after* your product has revenue to support it)</code></pre>
satya71超过 2 年前
Our stack is that Django + htmx + Alpine. I wouldn’t say htmx an unalloyed joy to use. However, it’s very good at what it does and stable.<p>Also, 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.<p>I wish there were a more stable frontend framework that didn’t require constant maintenance.
评论 #34025988 未加载
graboid超过 2 年前
Since you mentioned little interaction and reactiveness, I would say go for htmx. At work, we have a large MPA in ASP.NET. If a page is simple enough, it is done in Htmx. If it requires lots of interactivity, we use Vue. But I tend to push the boundary on what counts as enough interactivity to warrant the use of Vue very far, and I prefer to do most stuff in htmx these days.
solardev超过 2 年前
If I were you I wouldn&#x27;t build the frontend from scratch. There are like a million drop in dashboards that you can buy for like $100 that can be easily hooked up to your backend. Stuff like MUI and probably a bazillion others. Just change the styling a bit if you need to. But that&#x27;s way less work than trying to build and maintain a bespoke system.
评论 #34026000 未加载
gardenhedge超过 2 年前
I&#x27;m a fan of Remix Run - full stack js framework based on React