From 2070483971f183d68e080dd823c082233086bd02 Mon Sep 17 00:00:00 2001 From: Kamran Ahmed Date: Fri, 12 Aug 2022 20:03:23 +0400 Subject: [PATCH] Add react context docs --- .../content/101-react-advanced-topics/101-context.md | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/content/roadmaps/103-react/content/101-react-advanced-topics/101-context.md b/content/roadmaps/103-react/content/101-react-advanced-topics/101-context.md index cced069fd..76531174a 100644 --- a/content/roadmaps/103-react/content/101-react-advanced-topics/101-context.md +++ b/content/roadmaps/103-react/content/101-react-advanced-topics/101-context.md @@ -1 +1,8 @@ -# Context \ No newline at end of file +# Context + +Context provides a way to pass data through the component tree without having to pass props down manually at every level. + +In a typical React application, data is passed top-down (parent to child) via props, but such usage can be cumbersome for certain types of props (e.g. locale preference, UI theme) that are required by many components within an application. Context provides a way to share values like these between components without having to explicitly pass a prop through every level of the tree. + +Free Content +Official React Context Docs