3 ms·
Show HN: Zero – DX focused non framework to interact with the DOM
- 5cott0 2y agoInteresting, I cooked up something similar a few years ago to use on my personal website and d3.js viz projects. Originally for use with webpack/babel but now I use it exclusively with Vite. https://www.npmjs.com/package/jsx-pragma https://www.npmjs.com/package/jsx-pragma
- _nhh 2y agoNice work! JSX is such an awesome piece of technology. Using it with the dom feels like a component based and maintainable jquery.
- bitbasher 2y agoI'd like to understand when the term "DX" was popularized. It certainly feels like it was a rather recent invention and often tied to a tool or platform to get locked into. If I were into conspiracies, I would hazard a guess the term "DX" was created by a marketing department for a PaaS.
- _nhh 2y agoFor me great DX is when the editor provides useful information about my code. :)
- ivanjermakov 2y agoDX is a compelling argument to sell one more level of indirection (i.e. framework or metaframework or whatever "non framework" means)
- _nhh 2y agoI agree. There's a fine line between useful abstractions and bloat.
- skeptrune 2y agoAPI would be the proper term for this, no? Maybe "typed API"?
- dvh 2y agoIsn't there xss in the first demo? What if title is user supplied and it's something like <script>alert("xss")</script>
- _nhh 2y agoUser supplied stuff must always be sanitized :)