react.dev
react.dev copied to clipboard
The React documentation website
- Change fragment links from tags to NextLink components in MDX/Link.tsx - Set history.scrollRestoration = 'auto' for all browsers in _app.tsx - This prevents multiple new pages in backStack and...
When I merge PR into main branch, I always received the notification that the workflow failed like [this](https://github.com/reactjs/zh-hans.reactjs.org/actions/runs/4495876442). I found the PR workflow is different from main branch. The latter...
**Description** - This PR improves consistency in the documentation by capitalizing React-specific concepts where appropriate. **Changes include:** - Updated add-react-to-an-existing-project.md to capitalize React, Hooks, Effects, and Transitions consistently. - Updated...
These notes were not fully updated when `use(promise)` was released. Now that there's an official way to suspend, we don't need so many caveats and scary warnings to use a...
There is a paragraph from the [docs](https://react.dev/reference/rules/components-and-hooks-must-be-pure#how-does-react-run-your-code): > Rendering refers to calculating what the next version of your UI should look like. **After rendering, [Effects](https://react.dev/reference/react/useEffect) are flushed** (meaning they are...
I ran Imagemin Guard over the code base to check on (lossless) image compression potential. This suggested some significant savings (>2 MB overall, without quality degradation). Log as follows. ```shell...
New docs on avoiding recreating ref contents has two examples: [Example1](https://react.dev/reference/react/useRef#avoiding-recreating-the-ref-contents): ``` const playerRef = useRef(new VideoPlayer()); ``` [Example2](https://react.dev/reference/react/useRef#avoiding-recreating-the-ref-contents): ``` const playerRef = useRef(null); if (playerRef.current === null) { playerRef.current...
### Summary Enable Bridgy Fed for the React.dev Bluesky account. ### Page https://react.dev/blog ### Details On https://react.dev/blog, the [@react.dev](https://bsky.app/profile/react.dev) Bluesky account is mentioned. This account can trivially be made available...
### **What’s the issue?** The Clock challenge component throws a runtime error because it tries to set the className on an element that does not yet exist in the DOM....