# no-render-return-value

Rule `react/no-render-return-value`. Disallow usage of the return value of ReactDOM.render

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

## Linters

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

## Code examples

### Incorrect: the rule reports this

```jsx
const inst = ReactDOM.render(<App />, document.body);
doSomethingWithInst(inst);
```

### Correct: the rule accepts this

```jsx
ReactDOM.render(<App ref={doSomethingWithInst} />, document.body);

ReactDOM.render(<App />, document.body, doSomethingWithInst);
```

Examples from the ESLint documentation.

## Enable it

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

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

export default [
  {
    plugins: { react },
    rules: {
      "react/no-render-return-value": "error",
    },
  },
];
```

### Oxlint: `.oxlintrc.json`

```json
{
  "plugins": [
    "react"
  ],
  "rules": {
    "react/no-render-return-value": "error"
  }
}
```

### Biome: `biome.json`

```json
{
  "linter": {
    "rules": {
      "correctness": {
        "noRenderReturnValue": "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% |
| [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% |
| [Alloy](https://lintradar.dev/presets/alloy.md) | ESLint | `eslint-config-alloy` | 166 | 31.4K | +32.4% |

## Related rules

- [react/no-children-prop](https://lintradar.dev/rules/react/no-children-prop.md): Disallow passing of children as props
- [react/jsx-key](https://lintradar.dev/rules/react/jsx-key.md): Disallow missing `key` props in iterators/collection literals
- [react/no-string-refs](https://lintradar.dev/rules/react/no-string-refs.md): Disallow using string references
- [react/jsx-no-undef](https://lintradar.dev/rules/react/jsx-no-undef.md): Disallow undeclared variables in JSX
- [react/no-is-mounted](https://lintradar.dev/rules/react/no-is-mounted.md): Disallow usage of isMounted
- [react/require-render-return](https://lintradar.dev/rules/react/require-render-return.md): Enforce ES5 or ES6 class for returning value in render function

---

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