title: How to detect a React component vs. a React element?
body: <p><code>React.isValidElement</code> tests true for both React components as well as React elements. How would I test, specifically, that an object is a React component? Currently, I'm doing it by testing <code>typeof obj.type === 'function'</code>, but I'm hoping there's a better way.</p>