6 ms·
Yes but why bother with React, Hydrating pages at all if you can do something simpler? What advantages does React provide here? HTMX tools are simpler while pr
by xutopia 2mo ago
Yes but why bother with React, Hydrating pages at all if you can do something simpler? What advantages does React provide here?
HTMX tools are simpler while providing straightforward thinking around html fragment caching, whole page caching. React just gives a runaround way of doing everything. I'll remind you React was built so that people could continue watching a streamed video while they navigated on a page. Most pages aren't streaming anything.
- asdfsa32 2mo agoBecause "simple" is transient at best and a lie at worst. But for more details, see the sibling comment: https://news.ycombinator.com/item?id=49069477 https://news.ycombinator.com/item?id=49069477
- yawaramin 2mo agoMost webapps out there will never need the level of complexity of SPA frameworks. They will work completely fine for the foreseeable future with something like htmx. The GitHub notifications update bug is more of an eventual consistency issue than a ‘forgetting to update the UI’ issue.
- asdfsa32 2mo agoDo you like programming in Blub? Because you're telling me that Static Pages are not good enough but React is too much, only Blub is the one true ideal.
- yawaramin 2mo agoOne man’s React is another man’s Blub.
- asdfsa32 1mo agoObviously you missed the entire point of the conversation if you think it is "React good". It is about a paradigm, one that is grounded in mathematical soundness, of course, that doesn't mean the implementations out there are perfect and flawless, but that is not the point.
- robertoandred 2mo agoWhat advantages does HTMX have? You end up with splintered spaghetti code, multiple languages/idioms, and unpredictable state.
- Skinney 2mo ago* spaghetti or not depends on how you structure things, not on the framework/library used. * HTMX doesn’t introduce a new language. It extends HTML with props, which is less than what React is doing. * unpredictable state? You rely on the browser and (partial) page-refreshes.
- asdfsa32 2mo agoHTMX does introduce a new language, in fact it introduces 2 different ones, one is an extension of HTML and second is for the codelets it uses inside the array of attributes it uses as a pragma.