react.dev
react.dev copied to clipboard
The React documentation website
### Summary Here I have an example of two ways we can create functionally identical components. ```jsx export function ChildrenStyleOne() { const [value, setValue] = useState(''); return } export function...
### Summary Problem: When navigating from http://localhost:3000/learn to a specific learning page (like Quick Start), clicking the browser's back button does not return to the main page at http://localhost:3000/ ....
### Summary After slowly scrolling all the way down a page like https://react.dev/learn/separating-events-from-effects, I have to hit the browser back button several times before I'm actually taken to the previous...
Fixes #8045 ### Summary This PR clarifies the **Escape Hatches** documentation by marking one example as intentionally problematic and suppressing the linter in the sandbox. - Added a note explaining...
The last example on [the `react-hooks/purity` rule docs](https://react.dev/reference/eslint-plugin-react-hooks/lints/purity) causes a hydration error when SSRed (repro: copy the component into [a fresh Next.js app reproduction template](https://codesandbox.io/p/devbox/github/vercel/next.js/tree/canary/examples/reproduction-template) and using in the page):...
Hello, I am reading the changelog of [email protected] and there is nothing mentioned about the merge of eslint-plugin-react-compiler into eslint-plugin-react-hooks? I remember that this was announced some months ago? Was...
### Summary This lint is correct, but the sandbox is intentionally bad/broken: ### Page https://react.dev/learn/escape-hatches#removing-effect-dependencies ### Details _No response_
### Summary Replaced the hardcoded sidebar width (`lg:w-[342px]`) with Tailwind’s responsive utility (`lg:w-80`). This prevents overflow issues in **Firefox** and ensures better cross-browser consistency. ### Related Issue Fixes #7976 ###...
### Summary The main articles in the ( https://react.dev/reference/react ) are getting an overflow by SideBar. ### Page https://react.dev/reference/react ### Details In the url: ( https://react.dev/reference/react ) are a mistake...
This PR updates the example in `single-file-example.html` to use React 18+ `createRoot` API instead of the deprecated `ReactDOM.render`. - Replaced: ReactDOM.render(Hello, world!, document.getElementById('root')); - With: const root = ReactDOM.createRoot(document.getElementById('root')); root.render(Hello,...