1
0
mirror of https://github.com/kamranahmedse/developer-roadmap.git synced 2025-09-02 13:52:46 +02:00

Add composition vs inheritance docs

This commit is contained in:
Kamran Ahmed
2022-08-12 19:28:28 +04:00
parent ad830bc164
commit e789249be3

View File

@@ -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>