From 16056db603bf25c103d50bc8a1627e20d85fc6ef Mon Sep 17 00:00:00 2001 From: Gabriel Barbosa <152109789+GabrielTheDEV@users.noreply.github.com> Date: Thu, 25 Jul 2024 05:12:18 -0300 Subject: [PATCH] Update usecontext@D5_O-uElftYGQr_bTU_se.md (#6221) * Update usecontext@D5_O-uElftYGQr_bTU_se.md * Update usecontext@D5_O-uElftYGQr_bTU_se.md * Update src/data/roadmaps/react/content/usecontext@D5_O-uElftYGQr_bTU_se.md --------- Co-authored-by: dsh --- .../react/content/usecontext@D5_O-uElftYGQr_bTU_se.md | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/data/roadmaps/react/content/usecontext@D5_O-uElftYGQr_bTU_se.md b/src/data/roadmaps/react/content/usecontext@D5_O-uElftYGQr_bTU_se.md index 062c6d178..493fd9e86 100644 --- a/src/data/roadmaps/react/content/usecontext@D5_O-uElftYGQr_bTU_se.md +++ b/src/data/roadmaps/react/content/usecontext@D5_O-uElftYGQr_bTU_se.md @@ -1 +1,9 @@ -# useContext \ No newline at end of file +# useContext + +The `useContext` Hook lets us share data between components without having to pass props down through every level of the component tree. +This is particularly useful when many components need to access the same data or when components are deeply nested. + +Visit the following resources to learn more: + +-[@official@Using the useContext](https://react.dev/reference/react/useContext) +-[@official@Understand the concept of context](https://react.dev/learn/passing-data-deeply-with-context)