react.dev
react.dev copied to clipboard
[Suggestion]: Add a note to make developers more aware of `use` in the `useContext` page
Summary
Add a note saying this in useContext:
useis preferred overuseContextbecause it is more flexible.
Page
https://react.dev/reference/react/useContext
Details
This is already said in this article:
useis preferred overuseContextbecause it is more flexible.
It would be nice to add this note in useContext too.