|
|
|
|
|
by miffy900
24 days ago
|
|
This is why I have strongly preferred JSX over any other UI DSL (specifically the typescript variant, TSX) I've tried. It looks like a DSL, but it actually isn't - it's just regular javascript/typescript with a very thin 'declarative/markup' veneer. it basically tricks you into thinking you're writing a HTML-like UI-DSL, but it also just so happens to accept arbitrary JS expressions, because it is just regular JS. |
|
But in the end this is a small syntactical difference (how it looks). You could have a custom code viewer that does these translations for you.