* Fix deadlinks take 2
Fixes the actual broken links.
```
$ yarn deadlinks
yarn run v1.22.22
$ node scripts/deadLinkChecker.js
Checking 177 markdown files...
Fetched 552 React error codes
Loaded 49 redirects from vercel.json
✓ All 1554 links are valid!
✨ Done in 0.86s.
```
* [compiler] Rewrite React Compiler Docs
We've received [feedback](https://bsky.app/profile/danabra.mov/post/3lr46ciujjs2r) that the compiler docs are difficult to understand and not prominent enough that people don't realize the compiler is a serious project and is near stable.
This PR rewrites the whole compiler doc section, giving it its own category as well as a standalone reference page.
Preview: https://react-dev-git-pr7868-fbopensource.vercel.app/
* Add versions page and nav version
* Move version to siteConfig.js
* Fix typo
* Set to 18.3.1, use siteConfig in reference sidebar
* Redirect 18.react.dev to react.dev for now
* Fix stray bullet
This PR adds a new Rules of React reference section that covers the major rules that help developers author idiomatic React apps.
---------
Co-authored-by: Sathya Gunasekaran <gsathya.ceg@gmail.com>
* Add useOptimistic API reference documentation
* Fix title
* Add working exmaple from form and updadd parameters
* Add updates to useOptimistic
* Add updates to useOptimistic
* Add updates to useOptimistic
---------
Co-authored-by: Matt Carroll <mattca@meta.com>
* Add Error Boundary to useTransition docs
* add Error Boundary to useTransition
* Use Canary
* Add Error Boundary to useTransition API docs
* Update src/components/MDX/Sandpack/Preview.tsx
Co-authored-by: Jan Kassens <jan@kassens.net>
* Update src/content/reference/react/useTransition.md
Co-authored-by: Luna <lunaleaps@gmail.com>
* Update src/content/reference/react/useTransition.md
Co-authored-by: Luna <lunaleaps@gmail.com>
* Add Error Boundary to useTransition docs
* add Error Boundary to useTransition
* Use Canary
* Add Error Boundary to useTransition API docs
* Update src/components/MDX/Sandpack/Preview.tsx
Co-authored-by: Jan Kassens <jan@kassens.net>
* Update src/content/reference/react/useTransition.md
Co-authored-by: Luna <lunaleaps@gmail.com>
* Update src/content/reference/react/useTransition.md
Co-authored-by: Luna <lunaleaps@gmail.com>
* Address comments and update usage example
* Address comments and update usage example
* Update src/content/reference/react/useTransition.md
Co-authored-by: Luna <lunaleaps@gmail.com>
---------
Co-authored-by: Jan Kassens <jan@kassens.net>
Co-authored-by: Luna <lunaleaps@gmail.com>
* [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>
* Add basic reference pages for use client and server
I guess this turned into a bit more of an FAQ but I think it's useful to have this written down in a canonical place.
* Oops, push final tweaks