-
-
Notifications
You must be signed in to change notification settings - Fork 5.8k
Closed
Labels
area: reactclaimedgood first issueoutdatedA closed issue/PR that is archived due to age. Recommended to make a new issueA closed issue/PR that is archived due to age. Recommended to make a new issue
Description
Input:
<div attr=<div /> />
should become
React.createElement(
"div",
{ attr: React.createElement("div", null) }
);
but Babel currently throws
Property value of JSXAttribute expected node to be of a type ["JSXElement","StringLiteral","JSXExpressionContainer"] but instead got "CallExpression"
I assume because we're going through the intermediate
<div attr=React.createElement("div", null) />
which is indeed invalid. Probably the easiest fix would be to wrap it, e.g.
<div attr={React.createElement("div", null)} />
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
area: reactclaimedgood first issueoutdatedA closed issue/PR that is archived due to age. Recommended to make a new issueA closed issue/PR that is archived due to age. Recommended to make a new issue