BSIncrease and Decrease anyway are not getting called again and again when the component gets rerendered then why did you use useCallback ?Comment·Article·Mar 9, 2021·A Look At React Hooks: useCallback
BSWhat will happen if I use React.memo() only and not useCallbackComment·Article·Mar 9, 2021·A Look At React Hooks: useCallback