5cott0 7 hours ago

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

  • _nhh 4 hours ago

    Nice work! JSX is such an awesome piece of technology. Using it with the dom feels like a component based and maintainable jquery.

dvh 16 hours ago

Isn't there xss in the first demo? What if title is user supplied and it's something like <script>alert("xss")</script>

  • _nhh 15 hours ago

    User supplied stuff must always be sanitized :)

bitbasher 7 hours ago

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.

  • _nhh 4 hours ago

    For me great DX is when the editor provides useful information about my code. :)

skeptrune 16 hours ago

API would be the proper term for this, no?

Maybe "typed API"?

  • _nhh 15 hours ago

    What do you mean?

    • skeptrune 5 hours ago

      "non framework" just seems like a weird term

      • _nhh 3 hours ago

        I agree :D Do you have a better term for a thing that does not want to be a framework? Maybe it's really just code snippets. It's also not really an API, because the API is the DOM. :thinking:

        • meiraleal an hour ago

          There is no way to not be a framework. A bunch of code snippets is already one.