Closed
Description
I'm using 5.0.0-beta.1
My component looks like
import { cloneElement } from 'react';
const AnalyticsIdentify = ({children}) => {
return cloneElement(children, {
style:{}
});
}
I've looked into /react-docgen/dist/utils/isReactCloneElementCall.js, this usage could not pass
!(0, _match.default)(path.node, {
callee: {
property: {
name: 'cloneElement'
}
}
})
but it could pass test like
!(0, _match.default)(path.node, {
callee: {
name: 'cloneElement'
}
})
maybe we could be compatible both the cases, or have I get anything wrong?
Metadata
Metadata
Assignees
Labels
No labels