react.dev
react.dev copied to clipboard
The React documentation website
  [Preview](https://react-dev-git-mobile-banner-fbopensource.vercel.app/)
While translating [conditional-rendering](https://react.dev/learn/conditional-rendering) page I encountered one small issue. Namely, last (3rd) [challenge solution](https://react.dev/learn/conditional-rendering#refactor-a-series-of---to-if-and-variables) has list of objects in the code which are referenced by its names. Name of the...
I have added wrap content to improve the code readability in the playgrounds https://github.com/user-attachments/assets/eee1cdd1-99eb-48a5-8bf9-7873bc0696e3
this is a pretty common mistake when using the functional form of setState:  and we have no warning in React (yet) for this when it happens. easiest guard is...
https://reactjs.org/docs/portals.html We should make it clearer in the first paragraph it’s not imperative and doesn’t “work” outside of render. There is a common confusion that this should be called in...
In the React documentation for forms, there is only a footnote on using the controlled component with the `multiple` attribute. I recently spent some time getting it to work for...
We used to have a "tip" about this on the old website (a few years ago), but not anymore. I think maybe we need to revive that section because too...
### Summary When I click "Show details" button of 2 "Deep Dive" accordions, nothing happens, but instead, clicking anywhere else, will toggle the accordion. ### Page https://react.dev/reference/react/useMemo#usage ### Details >...
I noticed that the "Deep Dive" in `reusing-logic-with-custom-hooks.md` about whether React will provide a built-in data fetching solution in the future contained information about a non-existent `use` API, which now...
### Summary The described behaviour for ref callbacks with `null` as an argument is ambiguous. ### Page https://react.dev/reference/react-dom/components/common#ref-callback ### Details From https://react.dev/reference/react-dom/components/common#ref-callback: > React will also call your ref callback...