49 ms·
I'm not a frontend dev, but compared to React boilerplate it looks surprisingly... sane?
by agluszak 1y ago
I'm not a frontend dev, but compared to React boilerplate it looks surprisingly... sane?
- nwienert 1y agoUnfortunately looking sane and being a good model are different. One of Reacts greatest features is you’re just using JS for the logic - loops and conditionals are type checked, autocompleted, and already universally understood. Template based solutions have existed since forever, but if given the choice I’d never use them.
- lucideer 1y agoThe examples are contrived & the comparison to React in the first place isn't in any way like-for-like (the first example is comparing ShadCN, an entirely different library, not just React). React is a view state management library. Hyper is a DSL for a framework called Nue. They're not like-for-like tech. A better comparison would be something like Svelte which is a similar DSL (used with a framework called SvelteKit). Fwiw JSX is also a minimal DSL used by React but if this article compared bare Hyper (without Nue) with bare JSX (without React), JSX would come out much much more minimal in the examples.