Add use hook API reference page (#6177)

* [WIP] Add use hook API reference page

* [WIP] Update use hook API reference page based on feedback

* [WIP] use hook API ref doc: add browser API example

* [WIP] use hook API ref doc: add context, lib examples

* [WIP] use reference doc - incorporate all current feedback

* [WIP] use reference page fix typos

* use reference doc: address PR feedback from Luna, Sophia,Eli, and Lee

* Apply @harish-sethuraman's typo fixes from code review

Co-authored-by: Strek <ssharishkumar@gmail.com>

* use reference doc typo fixes

* use reference doc: update style to match other react.dev conventions

* minor fixes

* Remove client Promises, use canary labels

* Add use hook section to index, remove RSC section on components page

* Final edits

* Clarify use reference caveats

---------

Co-authored-by: Strek <ssharishkumar@gmail.com>
This commit is contained in:
Matt Carroll
2023-09-08 10:33:16 -07:00
committed by GitHub
parent 46e7b2c687
commit 742d2bff8f
3 changed files with 519 additions and 0 deletions

View File

@@ -10,6 +10,11 @@
"title": "Hooks",
"path": "/reference/react",
"routes": [
{
"title": "use",
"path": "/reference/react/use",
"canary": true
},
{
"title": "useCallback",
"path": "/reference/react/useCallback"