Composition vs Inheritance

'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.' --- https://reactjs.org/docs/composition-vs-inheritance.html

To reuse code, you should use composition rather than inheritance. Props and composition give you all the flexibility you need to customize a component's look and behavior explicitly and safely.