react.dev
react.dev copied to clipboard
The React documentation website
Fixes: #8110 Summary Users from the UK were unable to see images in the [Passing Props to a Component](https://react.dev/learn/passing-props-to-a-component) tutorial because Imgur is blocked in that region. This PR replaces...
Turning [posts](https://bsky.app/profile/sebmarkbage.calyptus.eu/post/3lku7b7xjmk2w) into [docs](https://react-pb6c6sbhj-fbopensource.vercel.app/reference/react/use#avoiding-fallbacks-by-passing-promise-subclasses) I.e. how React leverages `promise.status`. Targeted at Suspense-enabled libraries. [Preview](https://react-pb6c6sbhj-fbopensource.vercel.app/reference/react/use#avoiding-fallbacks-by-passing-promise-subclasses)
Fixes #8089 Before inside the ["Optimizing performance" deep dive](https://react.dev/learn/render-and-commit#optimizing-performance), the link with text "Performance" would send us to the legacy React docs. Clicking on "Performance" above would send us here:...
Fixes #8047 This PR resolves an issue where scrolling down documentation pages (such as “Separating Events from Effects”) caused multiple phantom browser history entries, requiring multiple back button presses to...
### Summary Hi, I found this bug both on firefox and brave (windows 11), to reproduce this try to folow any docs page (ex: [](https://react.dev/learn/reacting-to-input-with-state)) as you were actually reading...
**⚠️ Stacked PR**: This builds on top of #8130 - review that one first, then review only the incremental changes here. Adds dynamic markdown routing, enabling AI agents to fetch...
Fixes #8117 ## Summary Adds \`llms.txt\` and \`llms-full.txt\` generation following the [llms.txt specification](https://llmstxt.org/) to ensure AI models can access the latest React documentation with proper structure and metadata. ## What's...
### Summary Imgur has withdrawn from the UK in response to the [Online Safety Act (OSA)](https://www.bbc.co.uk/news/articles/c4gzxv5gy3qo). This breaks all images in the documentation/tutorials that attempt to load from Imgur. For...
### Summary ## Description The documentation for React Hooks (especially `useEffect`) mentions that updating state inside an effect without a proper dependency array can cause infinite loops, but this warning...
### Summary https://llmstxt.org/ ### Page https://react.dev/llms.txt ### Details Some projects like [NextJS](https://nextjs.org/docs/llms-full.txt), [Stripe](https://docs.stripe.com/llms.txt), [BetterAuth](https://www.better-auth.com/llms.txt) and [Zod](https://zod.dev/llms.txt) already provide this. With this file we can make sure that the AI model...