-
Notifications
You must be signed in to change notification settings - Fork 38
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
Can't use attribute without value in jsx #33
Comments
Aw right, we're using Haxe's built in XML parser. Needs some patching. |
As far as I can tell this is a limitation of Haxe's (macro time) XML parser. It can't be resolved without using an alternative XML parser. So no short term fix for that. |
I think a patch in haxe's xml parser will do. https://github.com/HaxeFoundation/haxe/blob/development/std/haxe/xml/Parser.hx |
Mmmh right if the parser is implemented in Haxe already then it might be simple to fix. We thought about having a single parser for JSX instead of making JSX valid XML. |
If anybody ever comes to this situation the syntax above is incorrect. To use those types of attributes you want to specify the boolean value eg - |
This gives me
Invalid JSX: Expected =
, when react itself can handle jsx like that. Easy to work around, but confusing at first.The text was updated successfully, but these errors were encountered: