DEV Community

Dev Sk
Dev Sk

Posted on

⚡ TSRX – A New Way to Write UI in TypeScript

You can think of TSRX as a spiritual successor to JSX — the same idea of embedding UI directly inside TypeScript, but with its own flavor.

✨ What makes TSRX different:

🌀 Control flow, scoped styles, and locals are first-class syntax in the template (not squeezed through expression slots).

🧩 The language stays aware of them all the way through to the compiled output.

🌐 It’s framework-agnostic and interoperable — today it compiles to React, Preact, Ripple, Solid, and Vue, with more to come.

📦 You can import .tsrx modules from JS, TS, and TSX files — and it just works.

👉 In short: TSRX keeps the mental model of JSX but evolves it into something more powerful, flexible, and future-ready.

🔗 Learn more: tsrx.dev

Top comments (0)