# jsx-props-no-multi-spaces

Rule `react/jsx-props-no-multi-spaces`. Disallow multiple spaces between inline JSX props

- Source: react
- Technologies: React
- Kind: style
- Needs type information: no
- Autofix: yes, in at least one linter
- Reach: 3.4M weekly downloads of presets that enable it
- Trend: +2.3% last quarter
- Rank: #1446 by reach, #1582 by growth

## Linters

| Linter | Rule name | Recommended | Autofix | Details | Docs |
| --- | --- | --- | --- | --- | --- |
| ESLint | `react/jsx-props-no-multi-spaces` | no | safe | package `eslint-plugin-react` | [docs](https://github.com/jsx-eslint/eslint-plugin-react/tree/master/docs/rules/jsx-props-no-multi-spaces.md) |

## Code examples

### Incorrect: the rule reports this

```jsx
<App  spacy />
```

```jsx
<App too  spacy />
```

```jsx
<App
  prop1='abc'

  prop2='def' />
```

### Correct: the rule accepts this

```jsx
<App cozy />
```

```jsx
<App very cozy />
```

```jsx
<App
  prop1='abc'
  prop2='def' />
```

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-multi-spaces": "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/jsx-one-expression-per-line](https://lintradar.dev/rules/react/jsx-one-expression-per-line.md): Require one JSX element per line
- [react/jsx-tag-spacing](https://lintradar.dev/rules/react/jsx-tag-spacing.md): Enforce whitespace in and around the JSX opening and closing brackets
- [react/jsx-max-props-per-line](https://lintradar.dev/rules/react/jsx-max-props-per-line.md): Enforce maximum of props on a single line in JSX
- [react/jsx-wrap-multilines](https://lintradar.dev/rules/react/jsx-wrap-multilines.md): Disallow missing parentheses around multiline JSX
- [react/jsx-indent-props](https://lintradar.dev/rules/react/jsx-indent-props.md): Enforce props indentation in JSX
- [react/no-access-state-in-setstate](https://lintradar.dev/rules/react/no-access-state-in-setstate.md): Disallow when this.state is accessed within setState

---

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