{"by":"danielvaughn","descendants":53,"id":40889951,"kids":[40891867,40891350,40891502,40893006,40916351,40916169,40891324,40892321,40891348,40915945,40916483,40916200,40918994,40916693,40891657,40916722],"score":41,"text":"I&#x27;ve been building a web UI library for a side project of mine. I thought it might be useful to others, so I&#x27;m releasing it as open source.<p>To put it simply, I realized that most of my pain points with React come from its declarative model ui=f(state). So I&#x27;m trying something that I&#x27;m calling &quot;imperative JSX.&quot; Instead of treating JSX as the source of truth for your UI, it essentially becomes a query interface for DOM manipulation.<p>I first had the idea for it a few months ago, and only began writing it in earnest last week, so it&#x27;s extremely early and nowhere near production-ready. Still, I&#x27;d appreciate feedback on it (positive and negative)!<p>The side project I&#x27;m working on is called Matry, so the library is currently called @matry&#x2F;dom. I&#x27;m slowly building up a list of examples of it in action at this repo: <a href=\"https:&#x2F;&#x2F;github.com&#x2F;matry&#x2F;dom-recipes\">https:&#x2F;&#x2F;github.com&#x2F;matry&#x2F;dom-recipes</a><p>Cheers!","time":1720268052,"title":"Show HN: A JavaScript UI library for imperative JSX","type":"story","url":"https://www.npmjs.com/package/@matry/dom"}