3 ms·
Does it have typed templates? I use Vue with Vue HTML templates + TypeScript, and all my bugs collect around the layer between the TypeScript code and the temp
by seanwilson 7y ago
Does it have typed templates?
I use Vue with Vue HTML templates + TypeScript, and all my bugs collect around the layer between the TypeScript code and the templates because the templates aren't typed.
You can use JSX to get typing but you run into hurdles going against the grain of how Vue is normally used.
- lowincome 7y agoVetur has experimental typed template support
- seanwilson 7y agoI don't get the point of the HTML style templates to be honest. JSX already works, can be typed, hooks in with existing JavaScript refactoring tools, can make use of existing JavaScript features like variables and functions etc. Why reinvent it all so you can write something that looks a bit more like regular HTML? Is there some benefit I'm missing?