React.isValidElement tests true for both React components as well as React elements. How would I test, specifically, that an object is a React component? Curren
React.isValidElement
class Test extends React.Component {} console.log(!!Test.prototype.isReactComponent);