from Hacker News

Show HN: Zero – DX focused non framework to interact with the DOM

by _nhh on 10/3/24, 11:15 PM with 14 comments

  • by 5cott0 on 10/4/24, 3:30 PM

    Interesting, 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

  • by dvh on 10/4/24, 6:32 AM

    Isn't there xss in the first demo? What if title is user supplied and it's something like <script>alert("xss")</script>
  • by skeptrune on 10/4/24, 6:05 AM

    API would be the proper term for this, no?

    Maybe "typed API"?

  • by bitbasher on 10/4/24, 3:40 PM

    I'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.