News for hackers. Stuff that matters.
Re:Microsoft Fast Design by flowerlad on Friday August 07, 2020 @02:12PM (#24084848)
You get compile-time checks for embedded JavaScript expressions. But you don't get checks for html tags and attributes. With JSX the TypeScript compiler checks JavaScript expressions as well as mismatched tags and attributes, all without any add-ons.
Re:Microsoft Fast Design by CuddleBunny on Friday August 07, 2020 @02:30PM (#24085026)
If the tagged literal approach takes off I'm sure tooling will keep up. JSX wasn't always as well supported as it is now.
Re:Microsoft Fast Design by spankalee on Friday August 07, 2020 @04:58PM (#24086405)
With the lit-html TypeScript and VS Code plugins you _do_ get checks (and auto-completion) for HTML tags, attribute, and properties.

Yes, it requires a plugin, but JSX required the parser, compiler, and type-checker to explicitly add support for it. They both require an extension to core TypeScript.