react.dev
react.dev copied to clipboard
The React documentation website
This change upgrades React.dev from Next 13.4.1 to Next 15 Canary and and enables the React Complier [Preview](https://react-dev-git-fork-mattcarrollcode-next15-fbopensource.vercel.app/), [19 Preview](https://19-react-dev-git-fork-mattcarrollcode-next15-fbopensource.vercel.app/)
### Summary When I scroll in a code sample editor, sometimes the lines are blank and nothing is rendered (pictures attached below). I can force the code to render if...
Fixes minor typos and removes unused imports from [reusing-logic-with-custom-hooks demos](https://react.dev/learn/reusing-logic-with-custom-hooks) (all [reusing-logic-with-custom-hooks demos](http://localhost:3000/learn/reusing-logic-with-custom-hooks) still work, I checked with `yarn dev`).
Fixed tic tac teo calculateWinner function
### Summary In the [previous docs](https://legacy.reactjs.org/docs/error-boundaries.html), error boundaries caveats are clearly defined. In the [new one](https://react.dev/reference/react/Component#catching-rendering-errors-with-an-error-boundary) however, it's not. If we want to direct all new react eng to the...
### Summary In the given game tutorial, the draw condition is not covered up. So once all tiles are filled, then it shows the turn of 'O' to play. It...
### Summary A section to describe the `isPending` value you can extract from `useActionState` ### Page https://react.dev/reference/react/useActionState ### Details You can do `const [state, action, isPending] = useActionState(myAction, null);` to...
This aims to describe the third item returned in the array when using the `useActionState` hook `isPending`. https://github.com/reactjs/react.dev/issues/6987
### Description: This pull request addresses an issue where the website would scroll back to the top of the page after closing the Algolia search bar, regardless of the user's...