react.dev
react.dev copied to clipboard
The React documentation website
#### As per docs ``` const [state, dispatch] = useReducer(reducer,initData); return ( {children} ) ``` as we separated `state` and `dispatch` now we can be sure that the component using...
PR for #5582 - increased height of menu to account for the height of the beta.react.js banner Small Screen (~650px)  Medium Screen...
Hi, I could be wrong, but I think one of the `ChatRoom` examples for `useEffect` is missing an argument. If you check out [this sandbox](https://codesandbox.io/s/b07ov3?file=/App.js&utm_medium=sandpack), it seems like the *setup*...
Hi, I was looking at [basic useReducer examples](https://beta.reactjs.org/reference/react/useReducer#examples-basic) in the beta version of React docs and am wondering if there's TypeScript version of them. In my opinion, it would be...
### Issue Hi, I have noticed an issue with the sidebar section on the desktop screen. The `FAQ` menu contains two items(Versioning Policy and Virtual DOM and Internals) that are...
#5588 In beta docs, the sidebar overlaps the content when min-width of screen is 1024px. This happens on Firefox only. Added a conditional media query depending on browser.
Preview: - [single-file snippet](https://beta-reactjs-org-git-fork-eps1lon-typescript-demos-fbopensource.vercel.app/learn/keeping-components-pure#purity-components-as-formulas) - [multi-file snippet](https://beta-reactjs-org-git-fork-eps1lon-typescript-demos-fbopensource.vercel.app/learn/describing-the-ui#importing-and-exporting-components) The selected "target language" (JS or TS) is selected globally and defaults to TS. It's not persisted at the moment but should be...
There is no mention of how state updates in async functions. For example, how does state update if event handler is an async function.