0.0.9 • Published 2 years ago
@jankuca/eslint-plugin-react-usecallback v0.0.9
eslint-plugin-react-usecallback
Rationale: Why we memo all the things.
Why the fork?
The original forked plugin (eslint-plugin-react-memo) also checks this using the require-usememo-children
rule but the rule is too strict about JSX used as children (the most common thing in React) and has not way to select which of the actual children prop rules apply.
Rules
require-usecallback-props
(ADVANCED)
Requires functions that get passed to children as props to be wrapped in React.useCallback()
.