---
title: "react-hooks/component-hook-factories"
description: "Deprecated: reports nothing, and is kept so that older configs still load"
# Generated by src/codegen/lint-rule-docs.ts. Do not edit below this line.
plugin: "react"
aliases: ["react_hooks/component-hook-factories","react/component-hook-factories"]
kind: "suggestion"
category: null
default: "off"
fixable: "no"
typeAware: false
deprecated: true
---

This rule reports nothing. It was about functions that create a component or a hook each time they're called, and `eslint-plugin-react-hooks` removed the check in version 7.1.0 but kept the name. `bun lint` does the same, so a config that still mentions the rule keeps working.

You can delete it from your config.

{/* never reports */}

## Examples

Not reported:

{/* good */}
```jsx
function makeButton(color) {
  return function Button({ children }) {
    return <button type="button" style={{ color }}>{children}</button>;
  };
}
```
