mirror of
https://github.com/reactjs/react.dev.git
synced 2026-02-22 03:42:14 +00:00
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.
This commit is contained in:
committed by
GitHub
parent
0e7f73c170
commit
2ef0ee1e4f
@@ -27,6 +27,8 @@ By following this rule, you ensure that all stateful logic in a component is cle
|
||||
|
||||
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:
|
||||
|
||||
This plugin is included by default in [Create React App](/docs/create-a-new-react-app.html#create-react-app).
|
||||
|
||||
```bash
|
||||
npm install eslint-plugin-react-hooks --save-dev
|
||||
```
|
||||
@@ -46,8 +48,6 @@ npm install eslint-plugin-react-hooks --save-dev
|
||||
}
|
||||
```
|
||||
|
||||
This plugin is included by default in [Create React App](/docs/create-a-new-react-app.html#create-react-app).
|
||||
|
||||
**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.
|
||||
|
||||
## Explanation {#explanation}
|
||||
|
||||
Reference in New Issue
Block a user