I am trying to understand the vue documentation on components. I came across this paragraph in the documentation:
If you are authoring your templates directly in a DOM (e.g. as the content of a native <template> element), the
template will be subject to the browser's native HTML parsing behavior.
In such cases, you will need to use kebab-case and explicit closing tags for components:
----------------------------------------------------------------------------------------------------
<!-- if this template is written in the DOM -->
<button-counter></button-counter>
<button-counter></button-counter>
<button-counter></button-counter>
I don't fully understand what this means. In my project I am able to use pascal case OR kebab case without problems. Why does the documentation say In such cases, you will need to use kebab-case?
What case is it referring to?
In my template, I can do <MyComponent/> and I can also do <my-component></mycomponent> so can someone explain when and why I would ever NEED to use kebab case?
Here is the Documentation