If it&#x27;s a class based component (ES6), it could inherit from the other.<p>But you could also extract the code logic in a product module, and reuse it in both components, which can even be pure functions.