Add composition vs inheritance docs

pull/1465/head
Kamran Ahmed 2 years ago
parent a512aeeaf8
commit 9e08eb1a98
  1. 8
      content/roadmaps/103-react/content/100-react-fundamental-topics/107-composition-vs-inheritance.md

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

Loading…
Cancel
Save