Skip to content

jankuca/eslint-plugin-react-usecallback

 
 

Repository files navigation

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().

About

memo/useMemo/useCallback all the things!

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • TypeScript 94.1%
  • JavaScript 5.9%