1. Correct Class Names :
If you are very certain that you are extending from a correctly named class,
Example : React.Component, not a React.component or React.createComponent, here you might need to upgrade the React version.
2. Upgrade React Version :
React has only supported the ES6-style classes since its version 0.13.0
While using below class:
class HelloMessage extends React.Component
You were trying to use the ES6 keywords (
extends) to subclass from the class which was not defined using ES6
class. This was likely why you were running into the strange behaviour with your
super definitions etc.
So, please update to React v0.13.x.
3.Circular Import Structure :
This can also occur if you have the circular import structure. One module is importing another and a other way around. In this case you just need to refractor the code to avoid it.