--

Even if you use useCallback here, the button will re-render. useCallback doesn't prevent re-render in this case.

--

--