# prefer-exact-props

Rule `react/prefer-exact-props`. Prefer exact proptype definitions

- 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: #1455 by reach, #1591 by growth

## Linters

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

## Enable it

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

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

export default [
  {
    plugins: { react },
    rules: {
      "react/prefer-exact-props": "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-unused-state](https://lintradar.dev/rules/react/no-unused-state.md): Disallow definitions of unused state
- [react/prefer-stateless-function](https://lintradar.dev/rules/react/prefer-stateless-function.md): Enforce stateless components to be written as a pure function
- [react/no-unused-prop-types](https://lintradar.dev/rules/react/no-unused-prop-types.md): Disallow definitions of unused propTypes
- [react/require-default-props](https://lintradar.dev/rules/react/require-default-props.md): Enforce a defaultProps definition for every prop that is not a required prop
- [react/no-unused-class-component-methods](https://lintradar.dev/rules/react/no-unused-class-component-methods.md): Disallow declaring unused methods of component class
- [react/sort-comp](https://lintradar.dev/rules/react/sort-comp.md): Enforce component methods order

---

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