code: function (node) {
        if (!node.parent) {
          return false;
        }
        return /^(React\.)?createClass$/.test(sourceCode.getText(node.parent.callee));
      }
docs: Check if the node is a React ES5 component
  
  @param {ASTNode} node The AST node being checked.
  @returns {Boolean} True if the node is a React ES5 component, false if not