React has a powerful composition model, and it is recommended to use composition instead of inheritance to reuse code between components.
Visit the following resources to learn more: