I have some components that are looking similar, serving same purpose, having same styles, however they have to implement slightly different behavior depending on module that they are used in. Now these are different components, however I'm not sure whether I'm doing right by copying and pasting one component multiple times and making small changes to achieve small changes in its behavior and layout.
If it was simple TypeScript I would just extend the base class and make whatever I need, however sometimes I need to make small changes to html layout either.
Is there a way where I could generalize my component (e.g. table component) and make it able to implement different behavior based on my needs?