curriculum icon indicating copy to clipboard operation
curriculum copied to clipboard

Managing State With The Context API: Fix link text

Open notginned opened this issue 10 months ago • 5 comments

Checks

Describe your suggestion

The last link in Knowledge Check section contains the following link What are the ways you can avoid prop drilling?

The link text says "What are the ways you can avoid prop drilling", but the linked section talks about "how we can avoid problems with prop drilling". The text does not seem to accurately represent the linked topic.

In my opinion, just changing the link text to "how can we avoid problems with prop drilling" makes it seem out of place, since we don't ask any questions about problems with prop drilling before this.

I think, in addition to changing the link text, adding another question about "What problems can prop drilling cause?" before this one that links to the relevant section on Kent C. Dodd's article would fix the issue.

We could go from this: What are the benefits of using the Context API over passing props down through multiple levels of components? What are the drawbacks in using the Context API? How can we avoid prop-drilling?

To this: What are the benefits of using the Context API over passing props down through multiple levels of components? What are the drawbacks in using the Context API? What problems can prop drilling cause? How can we avoid problems with prop drilling?

Path

Node / JS

Lesson Url

https://www.theodinproject.com/lessons/node-path-react-new-managing-state-with-the-context-api

(Optional) Discord Name

ginned

(Optional) Additional Comments

No response

notginned avatar Mar 03 '25 08:03 notginned

Another suggestion would be to re-order the questions so that we ask about prop drilling and its problem first, and then about the Context API and its problems. I think it would flow better. The re-ordered list could look like this:

What problems can prop drilling cause? How can we avoid problems with prop drilling? What are the benefits of using the Context API over passing props down through multiple levels of components? What are the drawbacks in using the Context API?

notginned avatar Mar 03 '25 08:03 notginned

Hello @gingkapls thank you for making this issue.

I'm going to ping our @TheOdinProject/react team to get their opinions on how to go forward on this.

JoshDevHub avatar Mar 04 '25 21:03 JoshDevHub

~~Not the react team anymore but~~ my 2¢ is full agreement with the proposed changes (reordering + new KC Q + rewording)

mao-sz avatar Mar 07 '25 13:03 mao-sz

Assuming this gets the green light, I would like to work on this.

joelmast avatar Mar 08 '25 00:03 joelmast

This issue is stale because it has had no activity for the last 30 days.

github-actions[bot] avatar Apr 07 '25 02:04 github-actions[bot]

This issue is stale because it has had no activity for the last 30 days.

github-actions[bot] avatar Sep 03 '25 02:09 github-actions[bot]

Sorry this took so long. @joelmast still up for this?

mao-sz avatar Sep 03 '25 22:09 mao-sz

Yes, please.

joelmast avatar Sep 04 '25 00:09 joelmast