dillon1000/react

Commit

Add RulesOfHooks support for `use`

Usage of the new `use` hook needs to conform to the rules of hooks, with
the one exception that it can be called conditionally.

ghstack-source-id: 7ea5beceaf2c080f2c48821b5117bdd0c1194836
Pull Request resolved: https://github.com/facebook/react/pull/25370
Browse files
Changed paths2 files
First-parent comparison
M packages/eslint-plugin-react-hooks/__tests__/ESLintRulesOfHooks-test.js ModifiedM packages/eslint-plugin-react-hooks/src/RulesOfHooks.js Modified
Patch

Files changed

Rendering syntax-highlighted changes…