October 2019
Intermediate to advanced
426 pages
11h 49m
English
If we stick to the convention of prefixing Hook functions with use, we can automatically enforce the other two rules:
In order to enforce the rules automatically, React provides an eslint plugin called eslint-plugin-react-hooks, which will automatically detect when Hooks are used, and will ensure that the rules are not broken. ESLint is a linter, which is a tool that analyzes source code and finds problems such as stylistic mistakes, potential bugs, and programming errors.
Read now
Unlock full access