(评论)
(comments)

原始链接: https://news.ycombinator.com/item?id=43619581

Hacker News上的一篇文章“Less Htmx Is More”引发了关于htmx库最佳实践的讨论。评论者t-writescode分享了将htmx与Solid.js结合构建响应式组件的积极经验,并指出这增加了对HTML的依赖,并对更新的HTML功能感到满意。 另一位评论者rpgbr强调了文章的核心观点:为了长期维护,在使用htmx时应尽可能优先使用纯HTML。 评论者chabska对原文中的一句话提出了质疑,认为文章声称与History API正确集成几乎不可能的说法站不住脚,因为其他JavaScript框架已经成功做到了这一点。总的来说,讨论围绕着探索htmx在Web开发中的细微之处和最佳应用展开。


原文
Hacker News new | past | comments | ask | show | jobs | submit login
Less Htmx Is More (unplannedobsolescence.com)
25 points by fanf2 47 minutes ago | hide | past | favorite | 3 comments










I have used htmx just a little bit; but I have found htmx + solid.js for some small reactive components to be ... very, very pleasant and very much else of what this blog post says to be accurate.

I've written a lot more html than I have in the past and it just ... feels good? html has upgraded quite a bit in the last decades since I learned it.



> Like any new tool, especially a tool that got popular as quickly as htmx, there are differing schools of thought on how best to use it. My approach—which I believe necessary to achieve the results described above—requires you to internalize something that htmx certainly hints at, but doesn’t enforce: use plain HTML wherever possible.

That’s the path for ultimate long term functional web pages!



> In practice, this is virtually impossible to get right

Somehow every other JS frontend framework manages to hook into the History API just fine?







Join us for AI Startup School this June 16-17 in San Francisco!


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact



Search:
联系我们 contact @ memedata.com