react.dev
react.dev copied to clipboard
The React documentation website
### Part 1: Gracefully handle exceptions If an error occurs, we should show some kind of fallback UI. We already handle specific types of errors like failing to load Babel...
Fixes from #6651: - Fixed the warning ` No files were found with the provided path: .next/analyze/__bundle_analysis_comment.txt. No artifacts will be uploaded. ` ([warning example](https://github.com/reactjs/react.dev/actions/runs/14332646347)) - Canceled `Analyze Bundle (Comment)`...
### Summary Here: ` const [optimisticState, addOptimistic] = useOptimistic(state, updateFn);` When you call `updateFn ` without transition react gives warning: > Warning: An optimistic state update occurred outside a transition...
### Summary [Here ](https://react.dev/reference/rsc/use-server#calling-a-server-function-outside-of-form) it says: > When using a Server Function outside a [form](https://react.dev/reference/react-dom/components/form), call the Server Function in a [Transition](https://react.dev/reference/react/useTransition), which allows you to display a loading indicator,...
### Summary Hello, I would like to suggest adding a Sitemap to react.dev website. This will help making react documentation easily accessible over the internet for web crawlers and tools...
The thin line between setter logic and batching lies in their distinct roles: setters initiate state updates, while batching determines how React schedules and groups these updates for efficient re-renders....
### Summary Add a note saying this in [useContext](https://react.dev/reference/react/useContext): > `use` is preferred over `useContext` because it is more flexible. ### Page https://react.dev/reference/react/useContext ### Details This is already said in...
This issue was originally reported by @MMeent via facebook/react/issues/9220 Please refer to the original issue for the related discussion thread. ### Text of original issue: As of #9106 there are...
### Summary Hi! I’ve noticed a small UX inconsistency in the sidebar navigation of the React documentation site. ## Current Behavior When you click on a sidebar menu item that...
This closes #7699