Re:Hono and Htmx and Cloudflare is a new stack
by deredede on Friday August 18, 2023 @02:10AM
(#37171888)
I'm not sure how that's worse than the plethora of binding attributes that you find in React/Vue/Svelte and the like. Sure they are not technically HTML attributes, but as programming languages, the outcome is very similar.
[ Parent
| on HN ]
Re:Hono and Htmx and Cloudflare is a new stack
by scotty79 on Friday August 18, 2023 @08:24AM
(#37174686)
React doesn't have bindings.
Re:Hono and Htmx and Cloudflare is a new stack
by deredede on Friday August 18, 2023 @10:08AM
(#37175816)
The `value={state}` / `onchange={evt => setState(evt.target.value)}` dance you do instead also fits the "programming with attributes" paradigm, which was my point.
Re:Hono and Htmx and Cloudflare is a new stack
by scotty79 on Friday August 18, 2023 @06:37PM
(#37183042)
That's really not the recommended way. Write a handler for the event and just mention it in jsx. Don't do stuff inline. Also jsx conceptually is not html. Just alternative syntax for some JS. You don't even have to use it if you want to completely avoid coding in anything that even resembles html.
React is nothing like Vue or Svelte.