Live data from Hacker News

Hyperapp – A tiny framework for building web interfaces

hyperapp.dev

21–30 of 198 posts

Re: Hyperapp – A tiny framework for building web interfaces

#23
post #20

Haven't been using react because of the JSX, but is this really where we are heading? https://hyperapp.dev/tutorial#rendering-to-the-dom Looks like som obfuscated JS-code..

Wasn't the unwieldiness of render functions the entire reason JSX was created?

Re: Hyperapp – A tiny framework for building web interfaces

#24
post #20

Haven't been using react because of the JSX, but is this really where we are heading? https://hyperapp.dev/tutorial#rendering-to-the-dom Looks like som obfuscated JS-code..

that is pretty much how React looks like after JSX is compiled to "pure" Javascript.

Re: Hyperapp – A tiny framework for building web interfaces

#25
post #20

Haven't been using react because of the JSX, but is this really where we are heading? https://hyperapp.dev/tutorial#rendering-to-the-dom Looks like som obfuscated JS-code..

Wasn't the unwieldiness of render functions the entire reason JSX was created?

Not sure of the reason, but it's a godsend comparatively. The reaction against JSX I find to be largely by people who've never actually used it.

If you keep your components small, as is best practice, whatever gut reaction one feels to it (which IMO is misplaced to begin with) is minimized, and quite readable.

Re: Hyperapp – A tiny framework for building web interfaces

#26
post #18

I've used this for building the browser extensions for my app [1]. It is simple, easy to understand and easy to reason with. However, I would recommend this only for small apps. As soon as your app's features/complexity increases, you end up writing a lot of biolerplate code that libraries like Vue or Preact already handle you for. [1] https://www.emailthis.me

Your open source browser extension framework was really helpful to me a few years ago!

Glad you found it useful.

I had sort of neglected it for a while, but during the course of the lockdown, I have started working on a major rewrite - replacing Gulp with Webpack, adding support for Edge, etc. Will release it soon :)

Re: Hyperapp – A tiny framework for building web interfaces

#27
post #20

Haven't been using react because of the JSX, but is this really where we are heading? https://hyperapp.dev/tutorial#rendering-to-the-dom Looks like som obfuscated JS-code..

Mithril was doing this exact thing before React became big - it's what we're moving away from (with JSX), not where we're heading.

Re: Hyperapp – A tiny framework for building web interfaces

#28
post #20

Haven't been using react because of the JSX, but is this really where we are heading? https://hyperapp.dev/tutorial#rendering-to-the-dom Looks like som obfuscated JS-code..

If I ever need to render HTML from JavaScript, this is my solution, https://lit-html.polymer-project.org/ or tagged templates directly, although I rather prefer straight MVC separation, SSR/Angular/Vue style.

Re: Hyperapp – A tiny framework for building web interfaces

#29
post #20

Haven't been using react because of the JSX, but is this really where we are heading? https://hyperapp.dev/tutorial#rendering-to-the-dom Looks like som obfuscated JS-code..

Mithril was doing this exact thing before React became big - it's what we're moving away from (with JSX), not where we're heading.

Going back to PHP and ASP you mean.
Post reply on HN