Jun 20, 2022
Even if you use useCallback here, the button will re-render. useCallback doesn't prevent re-render in this case.
Even if you use useCallback here, the button will re-render. useCallback doesn't prevent re-render in this case.
Frontend architect, coder. https://www.developerway.com. Advanced React book: https://www.advanced-react.com