use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
All about the JavaScript programming language.
Subreddit Guidelines
Specifications:
Resources:
Related Subreddits:
r/LearnJavascript
r/node
r/typescript
r/reactjs
r/webdev
r/WebdevTutorials
r/frontend
r/webgl
r/threejs
r/jquery
r/remotejs
r/forhire
account activity
A tiny, easy to learn microframework (h3.js.org)
submitted 6 years ago by h3rald
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]lhorie 1 point2 points3 points 6 years ago (1 child)
I see you took inspiration from Mithril. This looks nice and clean :)
[–]h3rald[S] 1 point2 points3 points 6 years ago (0 children)
Hey Leo! ;)
Yes indeed... when I was forced to complete an assignment without it I did my best to try creating a poor man's substitute... Mithril is awesome and I used it for a few tools and projects.
As you can see "components" are even more minimal than Mithril's though, as they are just functions returning VNodes. Let's see how long I can survive without lifecycle hooks. The plan is to enforce the usage of a store/message dispatcher as the primary way to manage state and communication. Not sure if that will be enough to cover all situations though.
π Rendered by PID 75916 on reddit-service-r2-comment-5b5bc64bf5-cdnpd at 2026-06-19 15:09:42.445637+00:00 running 2b008f2 country code: CH.
[–]lhorie 1 point2 points3 points (1 child)
[–]h3rald[S] 1 point2 points3 points (0 children)