From e789249be3a41bcbf8b121036c69e0ea6f3ab244 Mon Sep 17 00:00:00 2001 From: Kamran Ahmed Date: Fri, 12 Aug 2022 19:28:28 +0400 Subject: [PATCH] Add composition vs inheritance docs --- .../107-composition-vs-inheritance.md | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/content/roadmaps/103-react/content/100-react-fundamental-topics/107-composition-vs-inheritance.md b/content/roadmaps/103-react/content/100-react-fundamental-topics/107-composition-vs-inheritance.md index 3ea8b877e..400bd15d3 100644 --- a/content/roadmaps/103-react/content/100-react-fundamental-topics/107-composition-vs-inheritance.md +++ b/content/roadmaps/103-react/content/100-react-fundamental-topics/107-composition-vs-inheritance.md @@ -1 +1,7 @@ -# Composition vs inheritance \ No newline at end of file +# Composition vs Inheritance + +React has a powerful composition model, and it is recommended to use composition instead of inheritance to reuse code between components. + +Free Content +Composition vs Inheritance +