logoalt Hacker News

No-build, no-NPM, SSR-first JavaScript framework if you hate React, love HTML

55 pointsby usrbinenvlast Thursday at 1:49 PM50 commentsview on HN

Comments

hliyantoday at 10:56 AM

I'm starting to wonder whether reactivity (not React specifically) was the originally sin that led to modern UI complexity. UI elements automatically reacting to data changes (as oppposed to components updating themselves by listening to events) was supposed to make things easier. But in reality, it introduced state as something distinct from both the UI and the data source (usually an API or a local cache). That introduced state management. It was all downhill from there (starting with two way data binding, Flux architecture, Redux, state vs. props, sagas, prop drilling, hooks, context API, stateful components vs. stateless components, immutability, shallow copy vs. deep copy, so on and so forth).

show 5 replies
rouncetoday at 10:10 AM

Why have `<div data-part="form">` instead of using a `<form>` element?

aletoday at 10:41 AM

Build steps are realistically speaking inevitable because of minification, tree-shaking, etc. which is not even a big deal these days with tools like esbuild. For a "true" DOM-first component reactive system just use Web Components and any Signals library out there and you're good.

show 1 reply
wg0today at 12:48 PM

Have tried multiple approaches. Sevelte. HTMX. Everything in between.

And came to conclusion that after certain complexity of UI - React kind of components are unavoidable if you want to be able to reason about your code.

Think of Shopify admin panel with product variations each variation having different pictures and what not.

Not saying not doable in plain JS.

But then Chrome can be written in NASM too, C++ is just...

egeozcantoday at 10:16 AM

IMHO, you shouldn't make "hate" part of your tagline.

Maybe focus on a use-case? Something like, "No-build, no-NPM, SSR-first JavaScript framework specializing in Time-to-interactive" - maybe?

show 1 reply
febusravengatoday at 10:14 AM

"If you hate react" feels like very bad argument in engineering.

Anyway, interesting approach for up to medium pages (not apps!). Totally not replacement for react.

show 2 replies
Aldipowertoday at 12:23 PM

Hate and love, the borderline framework for borderliners. SCNR

bearjawstoday at 12:27 PM

Why use JS at all for SSR?

It's not a great language for it.

show 1 reply
JSR_FDEDtoday at 11:57 AM

Philosophically Datastar is on the same page. Incredible performance and dramatic reduction in complexity.

eknkctoday at 11:16 AM

I thought I hated React until I saw the samples on this page...

show 1 reply
bartwaardenburgtoday at 10:06 AM

The fields/flags state model is a nice idea, having structured values separate from boolean state is something I haven't seen in other frameworks. How does this compare to Alpine.js or htmx in practice? They're in a similar space (no build, SSR-first) but I'm curious what made you go with a new framework rather than building on top of those?

show 2 replies
Bengaliloltoday at 11:55 AM

I must have overlooked the site, but are there any working examples?

1GZ0today at 11:26 AM

Yeah, no thanks..

I'll just stick with a $5 vps with lamp and jjquery

chattermatetoday at 10:44 AM

[dead]