Composition over inheritance in React
The reuse principle
Composition over inheritance (or composite reuse principle) is a OOP design pattern to reuse the composition (e.g classes that have been implemented with functionality) rather then using inheritance.
Example
Let say you have 3 sec...
yipcode.hashnode.dev2 min read