3 ms·
I have no idea why JSX wouldn't be considered a DSL template language? I guess there are specific features you find compelling: it's typed, has good tooling fo
by jmull 4y ago
I have no idea why JSX wouldn't be considered a DSL template language?
I guess there are specific features you find compelling: it's typed, has good tooling for completions in your editor?
These exist in other template languages, and ones that transform more readily to HTML (which is the goal, don't forget).
Maybe you also value that it has a straight-forward, well-defined transformation to javascript?
That's OK, but since HTML is the goal, it doesn't seem right to optimize for an intermediate representation. To me it's a weakness of react that you have to work with HTML as javascript (which JSX mitigates fairly well, but is hardly ideal).
If you want to have it all, try Svelte.