Closed
Description
See this test case:
react/packages/react-dom/src/__tests__/ReactStatelessComponent-test.js
Lines 142 to 157 in 323efbc
Pretty sure the different message in production wasn't intentional, but is a consequence of ReactCurrentOwner.current
not being set in production for functional components.
We need to see if it's possible to emit the same (useful) message both in development in production. If it's not possible, we need to change the production message to be more ambiguous instead of suggesting the wrong reason for the problem.