6 ms·
You can use JSX instead of string templates. This way you can get type safety.
by nmerouze 10y ago
You can use JSX instead of string templates. This way you can get type safety.
- seanwilson 10y agoDo you know of any examples of this?
- nmerouze 10y agoJSX is in the docs: https://vuejs.org/v2/guide/render-function.html#JSX https://vuejs.org/v2/guide/render-function.html#JSX I don't have any concrete example of Vue.js + JSX + TypeScript but I know it's a bit tricky, see this thread: https://forum.vuejs.org/t/vue-2-0-and-tsx/308/8 https://forum.vuejs.org/t/vue-2-0-and-tsx/308/8