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: DOM-proxy: declarative UI with automatic dependecy tracking

2 pointsby aabbcc1241about 2 years ago

1 comment

aabbcc1241about 2 years ago
Develop lightweight and declarative UI with automatic dependecy tracking without boilerplate code, VDOM, nor compiler.<p>The concept is to use Proxy API to wrap the DOM object, and auto keep track of the dependency of some reactive statements.<p>The DOM event listener is auto setup to trigger re-run when the UI is updated by user, and the proxy setter triggers re-run when other part of code is updating the reactive statement&#x27;s dependency.<p>The current implementation is a lightweight library with inferred Typescript types.<p>This design could be extended to support server side rendering as well.