4 ms·
The language service API is huge! One of the main reasons I even bothered to learn React was because TypeScript supported type checking JSX. Back when I picked
by styfle 9y ago
The language service API is huge! One of the main reasons I even bothered to learn React was because TypeScript supported type checking JSX.
Back when I picked up TS, I was using Handlebars for templating. The templates were the only part of the code that didn't type check which was really annoying when doing something like "Refactor all references". I tried to write my own templating[0] and realized I was basically reinventing JSX, so I wrote a react boilerplate[1].
The language service is going to make Vue, Angular, Svelt, and any other template syntax way more attractive.
[0]: https://github.com/styfle/typed-tmpl https://github.com/styfle/typed-tmpl
[1]: https://github.com/styfle/react-server-example-tsx https://github.com/styfle/react-server-example-tsx