|
|
|
|
|
by sheept
1 day ago
|
|
HTML is case insensitive, so <Button> is the same as <button>, and custom element names must have a hyphen. Your component regex represents a JSX limitation, but web components do not need React. Plus, if you capitalize the first letter, JSX would treat it as a React component rather than a web component (i.e. custom native HTML elements) |
|