React.js TypeScript Same component for and ` and `` elements to different components – georgekrax Dec 25 '20 at 16:23

  • Any idea on how I can use same reusabIe attributes on `` and ``? – georgekrax Dec 26 '20 at 16:56
  • If you'd like to extend both component with the same attributes adding a special feature to both of them you can implement a [HOC](https://stackoverflow.com/a/56392603/5506730) like `withNoGrammar` etc. But I do not think that redundancy is something which you have to avoid at all costs. – gazdagergo Dec 27 '20 at 21:34