Show HN: Elemental – simple front ends in plain JavaScript
5 points
34 minutes ago
| 1 comment
| github.com
| HN
fynyky
34 minutes ago
[-]
This is a personal library I’ve been using for a while. I really don’t like how much frontend frameworks require you to invest in them. You have to learn funky domain specific languages, and magic render lifecycles just to debug anything. I mostly just want to create and append elements with better ergonomics. So that’s what I built.

The syntax lets you build a DOM declaratively with plain nested functions. This lets you define logic and views cleanly in a single structure, instead of reasoning across separate UI layout and UI logic. This also means you can use bit by bit instead of having to overhaul a whole project to a framework.

I hope you find it as useful as I have! Would love to get feedback from having fresh eyes on it.

reply
k-taro56
8 minutes ago
[-]
What’s the difference between this and `React.createElement`?
reply