Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions react/more_react_concepts/managing_state_with_context_api.md
Original file line number Diff line number Diff line change
Expand Up @@ -284,3 +284,5 @@ The following questions are an opportunity to reflect on key topics in this less
This section contains helpful links to related content. It isn't required, so consider it supplemental.

- For some extra practice/review, check out the [React docs lesson on passing data with Context](https://react.dev/learn/passing-data-deeply-with-context).

- [Using Composition in React to Avoid "Prop Drilling"](https://www.youtube.com/watch?v=3XaXKiXtNjw) gives a great explanation on using composition instead of useContext, but if you find yourself prop drilling down 2-4 "dumb" components composition should be used.
Comment on lines +287 to +288
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Removing an unnecessary blank line.
I think the original wording is overspecifying here and would rather it be more general, allowing learners to take from it what they will, and avoiding preaching anything that can be taken as a "rule" (there are almost never any absolutes in programming).

Suggested change
- [Using Composition in React to Avoid "Prop Drilling"](https://www.youtube.com/watch?v=3XaXKiXtNjw) gives a great explanation on using composition instead of useContext, but if you find yourself prop drilling down 2-4 "dumb" components composition should be used.
- [Using Composition in React to Avoid "Prop Drilling"](https://www.youtube.com/watch?v=3XaXKiXtNjw) gives some alternative insights to handling certain prop drilling situations.