* API docs for useDeferredValue's initialValue
Updates the API docs for `useDeferredValue` to include the
`initialValue` option, added in
https://github.com/facebook/react/pull/27500.
This feature is slated for release in React 19.
* Add docs for onCaughtError and onUncaughtError (#6742)
* Add docs for onCaughtError and onUncaughtError
* Updates from feedback
* Add canary info, simplify a bit
---------
Co-authored-by: Ricky <rickhanlonii@fb.com>
* in \[errorCode\].tsx, wrapped parsedContent in a div and applied styling of white-space: pre-wrap to preserve whitespace and break on newline chars
* updated styling to tailwind class
* change isOpen variable in TopNav component to isMenuOpen to differentiate from isOpen props in Search component
change setIsOpen to setIsMenuOpen in TopNav component
* move initialization of ShowSearch state to top-level of TopNav component
organize hook initializations in TopNav component: useState, useRef, useRouter
* remove initialYScroll prop from DocSearchModal component to fix search functionality on ios devices
This example contains a list of person objects, but only the first 3 have id properties. This appears to be a mistake; in the next use of the list all 5 person objects have this property, but it is not changed as part of an instructive exercise.
This change makes the final two with objects consistent with the remainder of the list.
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>
* Update useDeferredValue.md
change text from "re-render in background" to "re-render in the background"
* Update useDeferredValue.md
Change instances of "in background" to "in the background".
* fix: Update @codesandbox/sandpack-react version to 2.13.3
* fix: Fixed bundlerURL to use the correct URL
* fix: Update @codesandbox/sandpack-react to version 2.13.4
* style: Hide span element in sp-icon-standalone when loading
Removed the redundant alternative state management suggestion. The documentation
already emphasizes the elimination of duplication by advising to hold the
selected ID in state, making the alternative suggestion unnecessary.