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

The React documentation website

Results 773 react.dev issues
Sort by recently updated
recently updated
newest added

### Summary The React documentation states that mutating state is "not recommended" and that developers can "get away with it," when in fact mutating state doesn't trigger re-renders at all....

type: documentation

Explain why directly mutating objects in state is bad and add a short code example showing immutable updates. Fixes readability for beginners.

CLA Signed

I have some questions about purity in React that I couldn’t find answers to in the docs. It would be helpful if the docs clarified these points and/or someone answered...

This PR improves code quality by removing unnecessary debug logging and enhancing TypeScript type safety in the codebase. Changes - Remove build-time console.log statements from compileMDX.ts that were logging cache...

CLA Signed

[preview: useEffect reference docs ](https://react-5wbg1cutd-fbopensource.vercel.app/reference/react/useEffect#parameters) I had two instances recently where people were confused by useEffect not running after each render (https://github.com/facebook/react/issues/35221 and https://github.com/facebook/react/issues/34730). I think the docs aren't super...

CLA Signed

"Counter example" has a specific meaning. Reworded the language to clarify that it points to the example about counter state variable. ![Screen Shot 2021-01-13 at 2 01 38 PM](https://user-images.githubusercontent.com/34014324/104497217-01eb5a00-55a8-11eb-941d-4550befd2b54.png)

CLA Signed

Closes #8158 Fix incorrect startTransition usage in docs The example in the Server Functions page calls a server action inside startTransition, but the state updates after the await aren’t wrapped...

CLA Signed

https://react.dev/reference/rsc/server-functions#server-functions-with-actions 1. Shouldn't setError and setName need to be wrapped with a new startTransition? 2. It seems meaningless to apply startTransition to await updateName in the document, doesn't it? https://react.dev/reference/react/useTransition#react-doesnt-treat-my-state-update-after-await-as-a-transition