I expect the lint to also work inside React hooks functions:
Every hook function (which is a function named use* should not constantly return a new reference (which is an object/function/array/JSX which is not created outside the hook nor inside a useMemo/useCallback).
I expect the lint to also work inside React hooks functions:
Every hook function (which is a function named
use*should not constantly return a new reference (which is an object/function/array/JSX which is not created outside the hook nor inside auseMemo/useCallback).