79342988

Date: 2025-01-09 14:38:00
Score: 2
Natty:
Report link

In my opinion, it should be cleaner using a useCallback around your listHeader method. It avoids re-rendering a component because of a method definition (here I guess your onPress method in CategoryButton)

See official doc: https://react.dev/reference/react/useCallback

Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: zarvedan