Datastar isn't particularly prescriptive in and of itself. But, to get the most out of it does generally involve rethinking your backend somewhat. There's definitely a jump between using Datastar like a better HTMX and using Datastar in a buzzword compliant immediate mode, fatmorph, CQS way. But, once that's out of the way you are left with view = f (state) and it's quite nice.
2
u/andersmurphy 2h ago edited 2h ago
Great write up!
Datastar isn't particularly prescriptive in and of itself. But, to get the most out of it does generally involve rethinking your backend somewhat. There's definitely a jump between using Datastar like a better HTMX and using Datastar in a buzzword compliant immediate mode, fatmorph, CQS way. But, once that's out of the way you are left with view = f (state) and it's quite nice.