Why is check reserved HTML elements in component() is case-sensitive? #11546
Artemeey
started this conversation in
General Discussions
Replies: 1 comment
-
Components registered in kebab-case can only be used in kebab-case, while components registered in PascalCase can be used both in PascalCase and kebab-case. So, That's why Vue documentation recommends naming components in PascalCase: |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Vue version: 3.4.3 and 3.5.0 alpha
Examples:
Potential errors, ambiguity:
<component is="button">
and<button>
- it works in different ways, is strangeI propose to prohibit the use of reserved names and use case-insensitive check.
Beta Was this translation helpful? Give feedback.
All reactions