3 ms·
To me this seems really implicit and magical and strange. Where is template getting assigned to the code inside the script tag? Does OtherComponent somehow my
by antihero 8y ago
To me this seems really implicit and magical and strange.
Where is template getting assigned to the code inside the script tag?
Does OtherComponent somehow mysteriously map to other-component? How does one pass arguments to it? Is a .vue file actually HTML or is it parsed somehow to be HTML?
The thing I like about React is the explicitness of it. This is a source code file that exports component X. Component X uses style Y as defined above because it's explicitly passed in as a prop, etc etc.