Browse Source

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.
main
Esteban Luchsinger 5 years ago
committed by GitHub
parent
commit
2ef0ee1e4f
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      content/docs/hooks-rules.md

4
content/docs/hooks-rules.md

@ -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: 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 ```bash
npm install eslint-plugin-react-hooks --save-dev 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. **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} ## Explanation {#explanation}

Loading…
Cancel
Save