Add composition vs inheritance docs

This commit is contained in:
Kamran Ahmed committed 2022-08-12 19:28:28 +04:00
1 parent ad830bc164
commit e789249be3
1 file changed
+7 -1
@@ -1 +1,7 @@
# Composition vs inheritance
# Composition vs Inheritance
React has a powerful composition model, and it is recommended to use composition instead of inheritance to reuse code between components.
<ResourceGroupTitle>Free Content</ResourceGroupTitle>
<BadgeLink colorScheme='blue' badgeText='Official Docs' href='https://reactjs.org/docs/composition-vs-inheritance.html'>Composition vs Inheritance</BadgeLink>