diff --git a/beta/src/content/learn/editor-setup.md b/beta/src/content/learn/editor-setup.md index 6b489a5d..3a218b76 100644 --- a/beta/src/content/learn/editor-setup.md +++ b/beta/src/content/learn/editor-setup.md @@ -36,6 +36,8 @@ Code linters find problems in your code as you write, helping you fix them early * [Install ESLint with the recommended configuration for React](https://www.npmjs.com/package/eslint-config-react-app) (be sure you have [Node installed!](https://nodejs.org/en/download/current/)) * [Integrate ESLint in VSCode with the official extension](https://marketplace.visualstudio.com/items?itemName=dbaeumer.vscode-eslint) +**Make sure that you've enabled all the [`eslint-plugin-react-hooks`](https://www.npmjs.com/package/eslint-plugin-react-hooks) rules for your project.** They are essential and catch the most severe bugs early. The recommended [`eslint-config-react-app`](https://www.npmjs.com/package/eslint-config-react-app) preset already includes them. + ### Formatting {/*formatting*/} The last thing you want to do when sharing your code with another contributor is get into an discussion about [tabs vs spaces](https://www.google.com/search?q=tabs+vs+spaces)! Fortunately, [Prettier](https://prettier.io/) will clean up your code by reformatting it to conform to preset, configurable rules. Run Prettier, and all your tabs will be converted to spaces—and your indentation, quotes, etc will also all be changed to conform to the configuration. In the ideal setup, Prettier will run when you save your file, quickly making these edits for you. diff --git a/beta/src/content/learn/importing-and-exporting-components.md b/beta/src/content/learn/importing-and-exporting-components.md index a839a264..c646ba2e 100644 --- a/beta/src/content/learn/importing-and-exporting-components.md +++ b/beta/src/content/learn/importing-and-exporting-components.md @@ -126,7 +126,7 @@ Either `'./Gallery.js'` or `'./Gallery'` will work with React, though the former - + There are two primary ways to export values with JavaScript: default exports and named exports. So far, our examples have only used default exports. But you can use one or both of them in the same file. **A file can have no more than one _default_ export, but it can have as many _named_ exports as you like.** diff --git a/beta/src/content/learn/managing-state.md b/beta/src/content/learn/managing-state.md index aaf3b44d..4df05810 100644 --- a/beta/src/content/learn/managing-state.md +++ b/beta/src/content/learn/managing-state.md @@ -344,7 +344,7 @@ export default function ContactList({
    {contacts.map(contact => -
  • +