fix react inline elements plugin when creating properties out of jsx expression containers - fixes #2766
This commit is contained in:
@@ -38,6 +38,7 @@ export default function ({ types: t }) {
|
||||
}
|
||||
|
||||
function pushProp(objProps, key, value) {
|
||||
if (t.isJSXExpressionContainer(value)) value = value.expression;
|
||||
objProps.push(t.objectProperty(key, value));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user