# jsx-props-no-spreading

Rule `react/jsx-props-no-spreading`. Disallow JSX prop spreading

- Source: react
- Technologies: React
- Kind: style
- Needs type information: no
- Autofix: no
- Reach: 3.4M weekly downloads of presets that enable it
- Trend: +2.3% last quarter
- Rank: #1429 by reach, #1565 by growth

## Linters

| Linter | Rule name | Recommended | Autofix | Details | Docs |
| --- | --- | --- | --- | --- | --- |
| ESLint | `react/jsx-props-no-spreading` | no | no | package `eslint-plugin-react` | [docs](https://github.com/jsx-eslint/eslint-plugin-react/tree/master/docs/rules/jsx-props-no-spreading.md) |
| Oxlint | `react/jsx-props-no-spreading` | no | no | plugin `react`, category style | [docs](https://oxc.rs/docs/guide/usage/linter/rules/react/jsx-props-no-spreading.html) |

## Code examples

### Incorrect: the rule reports this

```jsx
<App {...props} />
<MyCustomComponent {...props} some_other_prop={some_other_prop} />
<img {...props} />
```

### Correct: the rule accepts this

```jsx
const {src, alt} = props;
const {one_prop, two_prop} = otherProps;
<MyCustomComponent one_prop={one_prop} two_prop={two_prop} />
<img src={src} alt={alt} />
```

Examples from the ESLint documentation.

## Enable it

### ESLint: `eslint.config.js`

```js
import react from "eslint-plugin-react";

export default [
  {
    plugins: { react },
    rules: {
      "react/jsx-props-no-spreading": "error",
    },
  },
];
```

### Oxlint: `.oxlintrc.json`

```json
{
  "plugins": [
    "react"
  ],
  "rules": {
    "react/jsx-props-no-spreading": "error"
  }
}
```

## Presets that enable it

| Preset | Linter | Package | Rules | Weekly downloads | Trend |
| --- | --- | --- | --- | --- | --- |
| [Airbnb](https://lintradar.dev/presets/airbnb.md) | ESLint | `eslint-config-airbnb` | 346 | 3.4M | +2.3% |

## Related rules

- [react/no-will-update-set-state](https://lintradar.dev/rules/react/no-will-update-set-state.md): Disallow usage of setState in componentWillUpdate
- [react/jsx-boolean-value](https://lintradar.dev/rules/react/jsx-boolean-value.md): Enforce boolean attributes notation in JSX
- [react/state-in-constructor](https://lintradar.dev/rules/react/state-in-constructor.md): Enforce class component state initialization style
- [react/function-component-definition](https://lintradar.dev/rules/react/function-component-definition.md): Enforce a specific function type for function components
- [react/static-property-placement](https://lintradar.dev/rules/react/static-property-placement.md): Enforces where React component static properties should be positioned.
- [react/default-props-match-prop-types](https://lintradar.dev/rules/react/default-props-match-prop-types.md): Enforce all defaultProps have a corresponding non-required PropType

---

Web page: https://lintradar.dev/rules/react/jsx-props-no-spreading. Data from npm and the linters' documentation, collected Dec 4, 2026. Site guide for agents: https://lintradar.dev/llms.txt
