> For AI agents: the complete documentation index is available at https://rslint.rs/llms.txt, the full documentation bundle is available at https://rslint.rs/llms-full.txt.

# jsx-no-duplicate-props

[Added in v0.5.0](https://github.com/web-infra-dev/rslint/releases/tag/v0.5.0)
## Configuration

| Preset                            | Configured Value |
| --------------------------------- | ---------------- |
| ✅ reactPlugin.configs.recommended | `"error"`        |


```ts title=rslint.config.ts
import { defineConfig, reactPlugin } from '@rslint/core';

export default defineConfig([
  reactPlugin.configs.recommended,
  {
    rules: {
      'react/jsx-no-duplicate-props': 'error',
    },
  },
]);
```

Disallow duplicate properties in JSX.

## Rule Details

Creating JSX elements with duplicate props can cause unexpected behavior in your application.

Examples of **incorrect** code for this rule:

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

Examples of **correct** code for this rule:

```jsx
<Hello first="John" last="Doe" />;
```

## Rule Options

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

### `ignoreCase`

When `true` the rule ignores the case of the props. Defaults to `false`.

Examples of **incorrect** code for this rule with `{ "ignoreCase": true }`:

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

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

## Original Documentation

- [eslint-plugin-react: jsx-no-duplicate-props](https://github.com/jsx-eslint/eslint-plugin-react/blob/v7.37.5/docs/rules/jsx-no-duplicate-props.md)
- [Source code](https://github.com/jsx-eslint/eslint-plugin-react/blob/v7.37.5/lib/rules/jsx-no-duplicate-props.js)
