# noReactPropAssignments

Rule `biome/noReactPropAssignments`. Disallow assigning to React component props.

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

## Linters

| Linter | Rule name | Recommended | Autofix | Details | Docs |
| --- | --- | --- | --- | --- | --- |
| Biome | `correctness/noReactPropAssignments` | no | no | group correctness, since 2.0.0 | [docs](https://biomejs.dev/linter/rules/no-react-prop-assignments/) |

## Code examples

### Incorrect: the rule reports this

```jsx
function Foo(props) {
  props.bar = "Hello " + props.bar;

  return <div>{props.bar}</div>
}
```

### Correct: the rule accepts this

```jsx
const Foo = function({bar}) {
   bar = "Hello " + bar;
   return <div>{bar}</div>
 }
```

Examples from the Biome documentation.

## Enable it

### Biome: `biome.json`

```json
{
  "linter": {
    "rules": {
      "correctness": {
        "noReactPropAssignments": "error"
      }
    }
  }
}
```

## Related rules

- [biome/noReactNativeLiteralColors](https://lintradar.dev/rules/biome/noReactNativeLiteralColors.md): Disallow color literals in React Native styles.
- [biome/noReExportAll](https://lintradar.dev/rules/biome/noReExportAll.md): Avoid re-export all.
- [biome/noReactForwardRef](https://lintradar.dev/rules/biome/noReactForwardRef.md): Replaces usages of `forwardRef` with passing `ref` as a prop.
- [biome/noRestrictedDependencies](https://lintradar.dev/rules/biome/noRestrictedDependencies.md): Disallow dependencies that are known to have better alternatives.
- [biome/noPseudoElementInFunctionalPseudoClass](https://lintradar.dev/rules/biome/noPseudoElementInFunctionalPseudoClass.md): Disallow pseudo-elements inside `:is()`, `:where()`, `:not()` and `:has()`.
- [biome/noScssDeprecatedColorFunctions](https://lintradar.dev/rules/biome/noScssDeprecatedColorFunctions.md): Disallow the deprecated Sass functions that read one channel of a color.

---

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