3 ms·
it’s really a funny point, as if JSX is somehow native? JSX requires a compiler and definitely also editor extensions for syntax and auto-complete and type chec
by gryzzly 2y ago
it’s really a funny point, as if JSX is somehow native? JSX requires a compiler and definitely also editor extensions for syntax and auto-complete and type checks.
- WorldMaker 2y agoSure, but the most common JSX compiler and language service is Typescript and Typescript is well supported everywhere. As the de facto language service for most JS work today, it certainly feels more like "native" than other template compilers. Also, for what it is worth, JSX is mostly (despite a few attempts from React to complicate it) a very simple syntax transformer to boring function calls for mostly easy to write functions. We've had "h" functions for a long time before JSX and we'll have "h" functions still if JSX stops being an interesting thing to support.
- gryzzly 2y agowell supported? the point is that you have to install additional tools for either syntax.
- WorldMaker 2y agoWell supported as in Typescript is the tool that you already have installed in neovim or in VS Code or in JetBrains editors or in almost anything else that supports modern Language Server Protocol to do JS language services. Typescript is the LSP a lot of people use daily for all JS work (whether or not they also use types/Typescript). There's no additional install for JSX syntax highlighting or auto-completion because it's also built into the Typescript LSP.