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
ReactComponent.prototype.isReactComponent = {};
Install using npm. At this point, there is no direct method available to check for its validity. What you are doing is correct.