News for hackers. Stuff that matters.
Re:Vue in 2016 by nmerouze on Wednesday December 28, 2016 @06:54PM (#13274710)
You can use JSX instead of string templates. This way you can get type safety.
Re:Vue in 2016 by seanwilson on Wednesday December 28, 2016 @07:58PM (#13274975)
Do you know of any examples of this?
Re:Vue in 2016 by nmerouze on Thursday December 29, 2016 @08:37AM (#13277158)
JSX is in the docs: 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