News for hackers. Stuff that matters.
Re:Please Just Try Htmx by krzyk on Thursday December 18, 2025 @12:24PM (#46315716)
> What I don’t get is why I’d use it if I can’t write a reasonable complex SPA with it.

Because most webpages don't need to be SPAs. I miss the days of jquery and html+css, where everything was snappy, and wasn't an SPA.

Re:Please Just Try Htmx by CooCooCaCha on Thursday December 18, 2025 @01:33PM (#46316636)
Plain react is arguably just as simple if not simpler than jquery.

And I’m not saying every site needs to be an SPA. I’m saying if I can write everything from a simple site to an SPA in a single framework then why not use that for everything?

Re:Please Just Try Htmx by H1Supreme on Thursday December 18, 2025 @02:34PM (#46317437)
How do you handle routing with plain React?
Re:Please Just Try Htmx by CooCooCaCha on Thursday December 18, 2025 @02:46PM (#46317625)
Using built-in browser apis. Not sure what you’re getting at.
Re:Please Just Try Htmx by codedokode on Thursday December 18, 2025 @11:09PM (#46322186)
React is an implementation of View component of MVC, View is responsible for displaying Model contents, not for handling routes. You are trying to use the wrong tool.
Re:Please Just Try Htmx by yawaramin on Monday December 29, 2025 @01:58PM (#46424047)
That's what we've been trying to tell you!