-
Notifications
You must be signed in to change notification settings - Fork 47.4k
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
custom elements, as implied in lower-case-convention.md, not working #2430
Comments
Currently in the JSX transform we still check a whitelist of known HTML elements. We won't be doing that in the future, so 0.12 is a release that allows you to upgrade without breaking in completely mysterious ways. Eg, here we break at compile time so you don't ship code like this to production. |
So the intention is that in a future version the whitelist will not be checked, and we'll be able to render custom elements at will? At least that's what I'm hoping. In my case I want to be able to render a webview tag, which is likely a little too obscure to warrant being whitelisted. |
Correct. And yea, I wouldn't add webview to the whitelist anyway. Not because it's obscure but because it's a non-standard tag. |
Support for |
As I was closing that issue I noted that you could use |
For now I'm using |
As I understand lower-case-convention.md, custom element names are now supported.
However when I try to do this (using 0.12.0), following the example in the gist, the jsx fails to be transformed.
What am I misunderstanding, or doing wrong. Or is that gist misleading?
The text was updated successfully, but these errors were encountered: