Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

allow valid kebab-case tag names #190

Closed
nippur72 opened this issue Sep 5, 2016 · 0 comments
Closed

allow valid kebab-case tag names #190

nippur72 opened this issue Sep 5, 2016 · 0 comments

Comments

@nippur72
Copy link
Contributor

nippur72 commented Sep 5, 2016

following #106, react-templates currently allows to render non native HTML DOM elements (e.g. WebComponents) if they follow kebab-case naming, but due to a bug, it works only if there is only one hyphen character:

<my-tag></my-tag>         => React.createElement('my-tag', {}); // OK !
<the-my-tag></the-my-tag> => React.createElement(the - my - tag, {}); // wrong !
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant