react.dev
react.dev copied to clipboard
The React documentation website
The initial call of `tick` ought to have a value for the 'now' argument' passed into it here. Currently, the code does work incidentally, but it passes `undefined` into `tick`,...
https://github.com/user-attachments/assets/fced4544-f701-43d3-b011-3b4e74620106 ## **Overview** This PR enhances the React documentation website's sidebar navigation by allowing users to toggle dropdowns when clicking an already-selected item. This improves overall navigation usability and aligns...
When a user selects a sidebar item with nested routes, the dropdown expands as expected. However, clicking the same selected item again does nothing, even though users naturally expect it...
fix: cascade deletion removes parent and cleans up grandparent refs in TravelPlan useImmer example
This update fixes the TravelPlan example in “Choosing the State Structure” so that deleting a place now behaves correctly and cleans up all related data. When the last child of...
### Summary The alternative way to configure react-compiler with Vitejs, which is to declare the Babel configuration separately, doesn't actually work. ### Page https://react.dev/learn/react-compiler/installation#vite ### Details Note that I'm talking...
This link - https://facebook.github.io/react/docs/test-utils.html not working from below page https://www.npmjs.com/package/react-addons-test-utils
This PR adds a new subsection **"How React Handles HTML Attributes"** to `src/content/learn/writing-markup-with-jsx.md`. It documents: - JSX vs HTML attribute name differences (`className`, `htmlFor`) - boolean attributes - inline style...
This 🐣 PR updates the second example on [react.dev/reference/react/act](https://react.dev/reference/react/act) to use an async callback with `act()` + fix an alignment issue with another sample Although the example currently uses a...
### Summary I learned a lot from this example. After understanding it more deeply, I discovered that if a child item is the only child of its parent item, the...
### Summary The docs on React Suspense include examples that lead to data leakage when used in Next.js. The issue is that the cache map is constructed globally, which will...