Hacker News new | ask | show | jobs
by TekMol 2878 days ago
What is Vue specific about it? Looking through the code, I don't see anything.
2 comments

Vue components are structured in such a way (props, methods, data, computed properties, etc.) which is the same of the file you can find within the SRC folder of the project.
It's a Vue component, how is that not Vue specific? - https://github.com/runkids/Imagvue/blob/master/src/imagvue.j...
But what advantages does a Vue component offer over just doing the same thing with CSS? It's not going to be any more performant because it's not addressing a part of the rendering engine that Vue has any influence over. And you're not saving keystrokes because you've still got to instantiate the component and pass values to the props. All it does as far as I can tell is abstract away something that's trivial to do manually.