react.dev
react.dev copied to clipboard
The React documentation website
Clicking on [Basic useState examples](https://beta.reactjs.org/apis/usestate#examples-basic) in [Additional resources]( https://www.coursera.org/learn/react-basics/supplement/K9KhU/additional-resources) throws below error "Not Found This page doesn’t exist."
SidebarButton component is never used in the sidebar or imported anywhere. SidebarLink is used instead. 
### Summary The ErrorBoundary example code [link](https://19.react.dev/reference/react/use#displaying-an-error-to-users-with-error-boundary) fails to compile with the error `Cannot find module 'react-error-boundary' from '/src/message.js'` CodeSandbox fork shows `react-error-boundary` is missing from `package.json` ### Page https://19.react.dev/reference/react/use...
### Summary By reading the [React 19 blog post](https://react.dev/blog/2024/04/25/react-19#actions). It shows two equivalent pieces of code, one of which uses `useTransition` and the other `useActionState`. I get a strong impression...
While translating [Passing Props to a Component](https://react.dev/learn/passing-props-to-a-component) page, I came across DPI term which is widely known I think. But, maybe there are some people who are not familiar with...
### Summary The left-side navigation menu in the React official documentation currently lacks a collapse feature. When navigating through long lists, users have to scroll to the bottom to access...
This fixes a minor typo in the createContext documentation. Alternatively, the sentence could be changed to: > This older way still works, but **newly written code should read context with...
This pull request aims to enhance the React documentation regarding suppressing hydration mismatch errors by providing a clear definition of the term "one level deep." Changes Made: Updated the documentation...
### Summary In the docs for "Suppressing unavoidable hydration mismatch errors" (https://react.dev/reference/react-dom/hydrate#suppressing-unavoidable-hydration-mismatch-errors), it would be helpful to define what "one level deep" means when the docs say: "This only works...