TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Show HN: Tiny JS – A Tiny JavaScript Library for Easy DOM Creation

7 pointsby atum479 months ago
Hi everyone, the other day I was here cause I thought I came up with a neat way of creating HTML via JavaScript [1] - After some iterations, I&#x27;m quite content with the code I wrote. Since I intend to use this in my personal projects, I thought others might as well.<p>1 - <a href="https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=41451559">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=41451559</a>

2 comments

atum478 months ago
I&#x27;ve recorded a short video showing a little bit of TinyJS if you&#x27;re interested - <a href="https:&#x2F;&#x2F;www.youtube.com&#x2F;watch?v=otz7sv_wpFA" rel="nofollow">https:&#x2F;&#x2F;www.youtube.com&#x2F;watch?v=otz7sv_wpFA</a>
genezeta9 months ago
One of the comments the other day was &quot;You have reinvented Hyperscript&quot;.<p>In case you didn&#x27;t see it, they meant this [0] and also this [1].<p>I don&#x27;t mean this as a critique or dismissal of your idea, but I think it&#x27;s fair to prefer Hyperscript since it&#x27;s well tested code and has a couple of additional features (like event handler support) without being much larger than your own code. Also, I think Hyperscript is more correct in the way they build the elements.<p>[0] <a href="https:&#x2F;&#x2F;github.com&#x2F;hyperhype&#x2F;hyperscript">https:&#x2F;&#x2F;github.com&#x2F;hyperhype&#x2F;hyperscript</a><p>[1] <a href="https:&#x2F;&#x2F;github.com&#x2F;ohanhi&#x2F;hyperscript-helpers">https:&#x2F;&#x2F;github.com&#x2F;ohanhi&#x2F;hyperscript-helpers</a>
评论 #41466534 未加载
评论 #41465150 未加载