mirror of
https://github.com/reactjs/react.dev.git
synced 2026-02-24 20:53:08 +00:00
[Beta] useContext API (#4378)
* [Beta] useContext API * Simplify + add * Tweaks * Softer * Tweaks * Small tweaks
This commit is contained in:
1395
beta/src/pages/apis/usecontext.md
Normal file
1395
beta/src/pages/apis/usecontext.md
Normal file
File diff suppressed because it is too large
Load Diff
@@ -15,6 +15,7 @@ const ref = useRef(initialValue)
|
||||
- [Usage](#usage)
|
||||
- [Referencing a value with a ref](#referencing-a-value-with-a-ref)
|
||||
- [Manipulating the DOM with a ref](#manipulating-the-dom-with-a-ref)
|
||||
- [Exposing a ref from your component](#exposing-a-ref-from-your-component)
|
||||
- [Avoiding recreating the ref contents](#avoiding-recreating-the-ref-contents)
|
||||
- [Reference](#reference)
|
||||
- [`useRef(initialValue)`](#useref)
|
||||
|
||||
@@ -15,6 +15,10 @@
|
||||
"title": "useState()",
|
||||
"path": "/apis/usestate"
|
||||
},
|
||||
{
|
||||
"title": "useContext()",
|
||||
"path": "/apis/usecontext"
|
||||
},
|
||||
{
|
||||
"title": "useRef()",
|
||||
"path": "/apis/useref"
|
||||
|
||||
Reference in New Issue
Block a user