Hacker News new | past | comments | ask | show | jobs | submit login

I'm not a frontend dev, but compared to React boilerplate it looks surprisingly... sane?





Unfortunately 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.


It's both: having both "sane" syntax and simple mental model is the key.

Good thing is TS is sane syntax. Also the examples were written fairly biased.

The 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.




Consider applying for YC's Summer 2025 batch! Applications are open till May 13

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: