Seems pretty elegant if you are willing to give up on the type safety of TSX. I wonder if this can be combined with it somehow. An example using Fresh would be great.
With Datastar your front end logic (if any) is minimal, and you can use any typesafe (or not) language you want for the backend. If you build webcomponents for your Datastar frontend you can use TS to your heart's content.
Datastar itself is written in TypeScript... And it is completely agnostic as to what language or approach you use in your backend, so long as you render html with the appropriate (web standards-compliant) attributes and expressions. Use ts, rust, lisp, or whatever you want on your server.
I actively look for non-TS frameworks. To me it's always been useless overhead. It really is a outcome of startup/enterprise teams that are so far away from how money goes in and out of a business that they sit around and think TS is a good usage of time. It may hurt their feelings to know plenty of people run successful teams and entire businesses without type safety. It also makes the code look like shit.
I mostly agree with this. TS works great in large enterprises where developers don't trust each other. But if you're working on your own, or in a small team where you can easily agree with each other, TS just becomes unnecessary overhead.
At least, that's my experience and I don't like it when people say that everyone must absolutely use TS when they don't know anything about your situation.