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
This is an old question, with an old answer.
If you run into this issue, probably you'll want to check the react-is NPM package page: https://www.npmjs.com/package/react-is
It's an official React module that takes into account details like ref forwarding, and memo to check for an element type.
To check if a value is an element type do: ReactIs.isValidElementType(obj)