# jsx-no-duplicate-props

Rule `react/jsx-no-duplicate-props`. Disallow duplicate properties in JSX

- Source: react
- Technologies: React
- Kind: correctness
- Needs type information: no
- Autofix: no
- Reach: 167.2M weekly downloads of presets that enable it
- Trend: +45.5% last quarter
- Rank: #92 by reach, #899 by growth

## Linters

| Linter | Rule name | Recommended | Autofix | Details | Docs |
| --- | --- | --- | --- | --- | --- |
| ESLint | `react/jsx-no-duplicate-props` | yes | no | package `eslint-plugin-react` | [docs](https://github.com/jsx-eslint/eslint-plugin-react/tree/master/docs/rules/jsx-no-duplicate-props.md) |
| Oxlint | `react/jsx-no-duplicate-props` | no | no | plugin `react`, category correctness | [docs](https://oxc.rs/docs/guide/usage/linter/rules/react/jsx-no-duplicate-props.html) |
| Biome | `suspicious/noDuplicateJsxProps` | yes | no | group suspicious, since 1.0.0 | [docs](https://biomejs.dev/linter/rules/no-duplicate-jsx-props/) |

## Code examples

### Incorrect: the rule reports this

```jsx
<Hello name="John" name="John" />;
```

### Correct: the rule accepts this

```jsx
<Hello firstname="John" lastname="Doe" />;
```

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-no-duplicate-props": "error",
    },
  },
];
```

### Oxlint: `.oxlintrc.json`

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

### Biome: `biome.json`

```json
{
  "linter": {
    "rules": {
      "suspicious": {
        "noDuplicateJsxProps": "error"
      }
    }
  }
}
```

## Presets that enable it

| Preset | Linter | Package | Rules | Weekly downloads | Trend |
| --- | --- | --- | --- | --- | --- |
| [React recommended](https://lintradar.dev/presets/react-recommended.md) | ESLint | `eslint-plugin-react` | 21 | 81.1M | +34.1% |
| [Next.js Core Web Vitals](https://lintradar.dev/presets/next-core-web-vitals.md) | ESLint | `eslint-config-next` | 62 | 46.8M | +48.8% |
| [Biome recommended](https://lintradar.dev/presets/biome-recommended.md) | Biome | `@biomejs/biome` | 491 | 28.5M | +106.8% |
| [Create React App](https://lintradar.dev/presets/react-app.md) | ESLint | `eslint-config-react-app` | 109 | 4.1M | +4.3% |
| [Airbnb](https://lintradar.dev/presets/airbnb.md) | ESLint | `eslint-config-airbnb` | 346 | 3.4M | +2.3% |
| [Ultracite for Biome](https://lintradar.dev/presets/ultracite-biome.md) | Biome | `ultracite` | 616 | 2.1M | +151.7% |
| [React Native](https://lintradar.dev/presets/react-native.md) | ESLint | `@react-native/eslint-config` | 79 | 1.2M | +5.8% |
| [Alloy](https://lintradar.dev/presets/alloy.md) | ESLint | `eslint-config-alloy` | 166 | 31.4K | +32.4% |

## Related rules

- [react/jsx-no-comment-textnodes](https://lintradar.dev/rules/react/jsx-no-comment-textnodes.md): Disallow comments from being inserted as text nodes
- [react/no-danger-with-children](https://lintradar.dev/rules/react/no-danger-with-children.md): Disallow when a DOM element is using both children and dangerouslySetInnerHTML
- [react/no-string-refs](https://lintradar.dev/rules/react/no-string-refs.md): Disallow using string references
- [react/no-children-prop](https://lintradar.dev/rules/react/no-children-prop.md): Disallow passing of children as props
- [react/no-render-return-value](https://lintradar.dev/rules/react/no-render-return-value.md): Disallow usage of the return value of ReactDOM.render
- [react/jsx-key](https://lintradar.dev/rules/react/jsx-key.md): Disallow missing `key` props in iterators/collection literals

---

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