react.dev icon indicating copy to clipboard operation
react.dev copied to clipboard

The React documentation website

Results 680 react.dev issues
Sort by recently updated
recently updated
newest added
trafficstars

The documentation of the subscribe argument in useSyncExternalStore was inaccurate. Now it says the following: subscribe: A function that takes a single callback argument and subscribes it to the store....

CLA Signed

Hi, I believe the documentation about `React.cloneElement` is not very clear about handling refs. I am talking about that part: https://reactjs.org/docs/react-api.html#cloneelement > However, it also preserves refs. This means that...

As a reader, I find the example very concise and basic. It is not clear what to do with the same pattern as soon as it grows out of scope:...

When used with useFormState, the server action requires 2 params: (prevState, formData) => newState

CLA Signed

### Summary You get the error message above when you create a functional component and omit to surround the properties with curly braces {}. The message should be more directive....

type: documentation

### Summary Add a webpage with a dedicated URL that shows react.dev search results (e.g. `https://react.dev/search?q=searchTerm`) ### Details I'd like to be able to set up a search engine "[bang](https://help.kagi.com/kagi/features/bangs.html)"...

type: documentation

### Summary In here: https://react.dev/reference/react/useLayoutEffect#parameters it says: > Before your component is added to the DOM, React will run your setup function This seems to be incorrect ### Page https://react.dev/reference/react/useLayoutEffect#parameters...

type: typos

Spreading the state was unnecessary, as we're going to explicitly set all the properties again anyway, (the explicit values will overwrite any values copied over from old state.) Screenshot before...

CLA Signed

Replaced var variables in search component to const variables to improve code readability and to ensure these variables are not updated by future code additions in the encompassing function.

CLA Signed

### Summary The use of the term `"each server request"` in the react.cache API documentation is ambiguous, potentially leading to confusion between React Server Components (RSC) and Server-Side Rendering (SSR)....

type: documentation