From 2ef0ee1e4fc4ce620dce1f3e0530471195dc64d1 Mon Sep 17 00:00:00 2001 From: Esteban Luchsinger Date: Mon, 16 Mar 2020 14:47:13 +0100 Subject: [PATCH] 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. --- content/docs/hooks-rules.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/content/docs/hooks-rules.md b/content/docs/hooks-rules.md index dee3d9ff..1cd5c09d 100644 --- a/content/docs/hooks-rules.md +++ b/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: +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}