Skip to content

Conversation

Khaspper
Copy link
Contributor

Because

This video gives a great explanation on using composition instead of useContext

This PR

Adding this video under additional resources

Issue

Closes #29914

Additional Information

Pull Request Requirements

  • I have thoroughly read and understand The Odin Project curriculum contributing guide
  • The title of this PR follows the location of change: brief description of change format, e.g. Intro to HTML and CSS lesson: Fix link text
  • The Because section summarizes the reason for this PR
  • The This PR section has a bullet point list describing the changes in this PR
  • If this PR addresses an open issue, it is linked in the Issue section
  • If any lesson files are included in this PR, they have been previewed with the Markdown preview tool to ensure it is formatted correctly
  • If any lesson files are included in this PR, they follow the Layout Style Guide

@github-actions github-actions bot added the Content: React Involves the React course label Sep 27, 2025
Comment on lines +287 to +288

- [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.
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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Content: React Involves the React course

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Managing State With The Context API: Add a video for solutions to prop drilling using composition

2 participants