At Facebook, we use React in thousands of components, and we haven’t found any use cases where we would recommend creating component inheritance hierarchies.
Long live to composition, inheritance is dead.
So, how do you extend a component in React?
Well, it’s pretty obvious that the guys @Facebook consider inappropriate to inherit from parent components. Let’s look at alternatives:
Planning ahead of time
There might be some cases where you have a component which can’t know what its children will be ahead of time (like most of us). For them, React gifts
As we can see,
... read the whole story at www.jstips.co.