Skip to content

[Suggestion]: Add a note to make developers more aware of use in the useContext page #7723

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
adriancuadrado opened this issue Apr 6, 2025 · 0 comments · May be fixed by #7728
Open

[Suggestion]: Add a note to make developers more aware of use in the useContext page #7723

adriancuadrado opened this issue Apr 6, 2025 · 0 comments · May be fixed by #7728

Comments

@adriancuadrado
Copy link

Summary

Add a note saying this in useContext:

use is preferred over useContext because it is more flexible.

Page

https://react.dev/reference/react/useContext

Details

This is already said in this article:

use is preferred over useContext because it is more flexible.

It would be nice to add this note in useContext too.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants