react.dev
react.dev copied to clipboard
The React documentation website
Starting with the next version 9, [ESLint will deprecate](https://eslint.org/docs/latest/use/configure/configuration-files) the current eslintrc format and will default use the new flat config format (`eslint.config.js`). Already from version [8.2.23](https://github.com/eslint/eslint/releases/tag/v8.23.0) you can fully...
In the page https://react.dev/learn/writing-markup-with-jsx , the first and last code editor blocks work fine, but if the original code is left unedited for about 40 seconds an "Unable to establish...
Hey there, I'm the author of the following post https://giacomocerquone.com/keep-input-cursor-still/ where I showcased a few pain points while managing an input's cursor. Earlier today I also noticed this [tweet from...
This PR - removes broken links and deprecated event properties - fixes useOptimistic demo bug (makes input value required) - Improves sentence readability
This PR introduces a new "Added in " section (which links to the relevant changelog) for each part of the API that is currently included in the stable versions. Only...
After seeing [a great example from Matt Carroll](https://github.com/mattcarrollcode/rsc-client-and-server-action-validation/tree/main), I decided to add a slightly different version for client- & server-side validation when using the `useFormState` hook. In the example, the...
`` must be rendered in a client component, since it uses a hook. This was correct in link href (`use client`) but not in link copy.
The conventional technique for rendering a React component to a particular DOM element. The root of the app is ReactDOM.render. Consider this: `ReactDOM.render(, document.getElementById('root'));` In this instance, the component is...