# jsx-handler-names

Rule `react/jsx-handler-names`. Enforce event handler naming conventions in JSX

- Source: react
- Technologies: React
- Kind: style
- Needs type information: no
- Autofix: no
- Reach: 0 weekly downloads of presets that enable it
- Trend: 0% last quarter
- Rank: #1722 by reach

## Linters

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

## Code examples

### Incorrect: the rule reports this

```jsx
<MyComponent handleChange={this.handleChange} />
```

```jsx
<MyComponent onChange={this.componentChanged} />
```

### Correct: the rule accepts this

```jsx
<MyComponent onChange={this.handleChange} />
```

```jsx
<MyComponent onChange={this.props.onFoo} />
```

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-handler-names": "error",
    },
  },
];
```

### Oxlint: `.oxlintrc.json`

```json
{
  "plugins": [
    "react"
  ],
  "rules": {
    "react/jsx-handler-names": "error"
  }
}
```

## Related rules

- [react/hook-use-state](https://lintradar.dev/rules/react/hook-use-state.md): Ensure destructuring and symmetric naming of useState hook value and setter variables
- [react/jsx-max-depth](https://lintradar.dev/rules/react/jsx-max-depth.md): Enforce JSX maximum depth
- [react/forward-ref-uses-ref](https://lintradar.dev/rules/react/forward-ref-uses-ref.md): Require all forwardRef components include a ref parameter
- [react/no-multi-comp](https://lintradar.dev/rules/react/no-multi-comp.md): Disallow multiple component definition per file
- [react/forbid-dom-props](https://lintradar.dev/rules/react/forbid-dom-props.md): Disallow certain props on DOM Nodes
- [react/no-set-state](https://lintradar.dev/rules/react/no-set-state.md): Disallow usage of setState

---

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