Skip to content

Conversation

alangpierce
Copy link
Contributor

In #79, I made it so the transformation is skipped in some cases, in particular
when the capitalization is invalid. This broke an assumption elsewhere in the
code that convertNodeToJSX always returns a JSXElement, so there was a crash
if a skipped element was used as a child. To fix, we can just wrap in a
JSXExpressionContainer for that case.

In reactjs#79, I made it so the transformation is skipped in some cases, in particular when the capitalization is invalid. This broke an assumption elsewhere in the code that `convertNodeToJSX` always returns a `JSXElement`, so there was a crash if a skipped element was used as a child. To fix, we can just wrap in a `JSXExpressionContainer` for that case.
@cpojer cpojer merged commit d975f80 into reactjs:master Sep 26, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants