function isJSXElementOrReactCall()

in src/utils/isStatelessComponent.ts [19:30]


function isJSXElementOrReactCall(path: NodePath, importer: Importer): boolean {
  return (
    path.node.type === 'JSXElement' ||
    path.node.type === 'JSXFragment' ||
    (path.node.type === 'CallExpression' &&
      isReactCreateElementCall(path, importer)) ||
    (path.node.type === 'CallExpression' &&
      isReactCloneElementCall(path, importer)) ||
    (path.node.type === 'CallExpression' &&
      isReactChildrenElementCall(path, importer))
  );
}