react.dev
react.dev copied to clipboard
The React documentation website
Closes #6758 Closes #6924 Replace broken `https://placekitten.com` placeholder images with `https://loremflickr.com`.
### Summary The sample code in the React documentation that uses placekitten.com fails to display images due to a host error. ### Page https://react.dev/learn/manipulating-the-dom-with-refs ### Details In the sample code,...
Making a more distinct separation of RSC at build time and RSC without a server, which the wording leads to a bit of a misnomer. Cause at the end you...
### Summary Here (https://react.dev/learn/react-compiler) you are instructing us to run `npm install eslint-plugin-react-compiler`. But it causes an error: > npm error code ERESOLVE npm error ERESOLVE could not resolve npm...
Adding a Sass Stylesheet Note: this feature is available with [email protected] and higher. Generally, we recommend that you don’t reuse the same CSS classes across different components. For example, instead...
### Summary At the bottom of the 'React Server Components' page is the line: > Since async components are [not supported on the client](https://react.dev/reference/rsc/server-components#why-cant-i-use-async-components-on-the-client), we await the promise with `use`....
### Summary The code example for `useOptimistic` hook contains unused `key` parameter ### Page https://19.react.dev/reference/react/useOptimistic#usage ### Details In the [`Optimistically updating forms` section](https://19.react.dev/reference/react/useOptimistic#usage), inside the code sample there is [an...
This change is irrelevant for the tutorial but could be useful to improve performance in complicated conditions and calculations. I confirmed a behavior, in an IF-THEN-ELSE with OR conditions, the...