Skip to content

Commit 2ef0ee1

Browse files
authored
Reorganize information about the plugin (#2835)
Having the information that the plugin is already installed by default after the installation instructions is probably wasting a lot of people's time. Moving it up probably avoids multiple installs of the plugin.
1 parent 0e7f73c commit 2ef0ee1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

content/docs/hooks-rules.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,8 @@ By following this rule, you ensure that all stateful logic in a component is cle
2727

2828
We released an ESLint plugin called [`eslint-plugin-react-hooks`](https://www.npmjs.com/package/eslint-plugin-react-hooks) that enforces these two rules. You can add this plugin to your project if you'd like to try it:
2929

30+
This plugin is included by default in [Create React App](/docs/create-a-new-react-app.html#create-react-app).
31+
3032
```bash
3133
npm install eslint-plugin-react-hooks --save-dev
3234
```
@@ -46,8 +48,6 @@ npm install eslint-plugin-react-hooks --save-dev
4648
}
4749
```
4850

49-
This plugin is included by default in [Create React App](/docs/create-a-new-react-app.html#create-react-app).
50-
5151
**You can skip to the next page explaining how to write [your own Hooks](/docs/hooks-custom.html) now.** On this page, we'll continue by explaining the reasoning behind these rules.
5252

5353
## Explanation {#explanation}

0 commit comments

Comments
 (0)