react.dev
react.dev copied to clipboard
The React documentation website
In this commit, the 'index' variable was removed from the map function within the JSX. The 'index' variable was previously used for mapping over the 'items' array, but it became...
# :dizzy: Changelog :star: Update "show arrow" condition in the `SidebarLink` component. :star: Use strict equality operator wherever the type of operand(s) are known.
The readme of the [eslint-plugin-react-hooks-package NPM package](https://www.npmjs.com/package/eslint-plugin-react-hooks) states the following: > Note: If you're using Create React App, please wait for a corresponding release of react-scripts that includes this rule...
The docs for `createPortal` currently mention to use `document.body` as the main example of a portal node to use. However, this pattern is a footgun and can lead to a...
Over here: https://react.dev/learn/preserving-and-resetting-state#option-1-rendering-a-component-in-different-positions about resetting a state, just because a line is drawn to the right, now the `Counter` becomes a "right" child? And then, just because the line is...
Can we add types description for React types, that can be supported for docs generators? For example we use next inheritance: ``` import React, { ButtonHTMLAttributes, FC } from 'react'...
The sentence "Another relationship in a React app that can be modeled with a tree are an app’s module dependencies." has a grammatical inconsistency and could be clearer. The subject...
The sentence "A major feature of components is the ability to compose components of other components." is somewhat unclear because of the repetition of the word "components".