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
The simplest solution is:
React.isValidElement(element)