TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

A 1KB Front End Library in Just 135 Lines

3 点作者 Liriel15 天前

1 comment

mubou15 天前
Not sure how useful this is IRL, but it&#x27;s pretty elegant, for being able to reproduce both JSX and React&#x27;s hook style in so little code. Rather than a React alternative per se (since this obviously lacks a vDOM), it almost feels like it could fill a similar role that Knockout did back in the day: making it easy to add some interactivity to a page in a more declarative way than plain DOM handling, but without bringing in a full framework.<p>Here&#x27;s a codepen if anyone else wants to try it out: <a href="https:&#x2F;&#x2F;codepen.io&#x2F;mubou&#x2F;pen&#x2F;pvvWyGO" rel="nofollow">https:&#x2F;&#x2F;codepen.io&#x2F;mubou&#x2F;pen&#x2F;pvvWyGO</a>