react.dev
react.dev copied to clipboard
The React documentation website
### Summary This is to make sure that the `react-test-renderer Deprecation Warnings` page is up to date with the React 19. ### Page _No response_ ### Details It's good to...
### Summary This is to make sure that `react-dom/test-utils Deprecation Warnings` is up to date with React 19. ### Page _No response_ ### Details It's good to keep pages up...
In HTML, `img` elements are void elements that don't have an end tag and are not self-closing. This is what you would see if you opened the DOM in any...
As per the suggestion explained in #7723 I had added a note in useContext page for the use(context) hook. @rickhanlonii can you please review this PR. Thanks Fixes #7723
### Summary https://react.dev/learn/synchronizing-with-effects#how-to-write-an-effect This link says React effects run after the commit phase, but https://react.dev/reference/rules/components-and-hooks-must-be-pure#how-does-react-run-your-code this link says it's after the rendering phase ### Page https://react.dev/learn/synchronizing-with-effects#how-to-write-an-effect ### Details In https://react.dev/learn/synchronizing-with-effects#how-to-write-an-effect,...
### Summary The docs on RSC should mention whether Promises passed from Server Components can be used without `use()`. ### Page https://react.dev/reference/rsc/server-components ### Details Currently, the docs only discuss resolving...
### Summary Inconsistent explaining on what useMemo returns on first render. ### Page https://react.dev/reference/react/useMemo#reference ### Details From article, in order: > On the initial render, useMemo returns the result of...
### Summary Formal Definition of Equality of two JSX values. If there is no formal definition possible then give practical guidelines. ### Page https://react.dev/learn/keeping-components-pure ### Details [React documentation on "Keeping...