react.dev
react.dev copied to clipboard
The React documentation website
### Summary A blogpost in the React docs confuses idempotence with purity. Even though this might seem a small typo, it is one of essential importance in that blogpost. ###...
Hi React team, Thanks for the great doc! I noticed in the following file that the initial state of the `age` is set as a string: https://github.com/reactjs/react.dev/blob/4c91abc78b20be10e7d40cf57a80a6a6247e6e9a/src/content/reference/react-dom/components/input.md?plain=1#L351 https://github.com/reactjs/react.dev/blob/4c91abc78b20be10e7d40cf57a80a6a6247e6e9a/src/content/reference/react-dom/components/input.md?plain=1#L376 Given this,...
The signature of the createPortal() function is `createPortal(children: React.ReactNode, container: Element | DocumentFragment, key?: string | null | undefined): React.ReactPortal`. The `key` param doesn't accept `number` type.
**Introduced a more robust solution using useState for stable reference initialization.** ### This approach has several advantages: 1. It avoids re-creating the video player instance on every render. 2. It...
fixes: #6699 ``` Let's make it consistent (and correct) by removing the spaces. ```` instead of removing spaces.. changing &mdash to &ndash i think it looks much better: 