From 9e08eb1a9811fdbdd22bc20d60fa13344c06b3ea 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 +