Acid Coder
Jun 29, 2022

--

if button is memoized(using memo), then useCallback can stop it from rerender

if the button is memoized, and you drop the useCallback, then the button will rerender

nevertheless, you should neither use useCallback or memo, the optimization cost doesnt worth it

--

--

Acid Coder

Typescript Zombie. Youtube Pikachu On Acid. (Unrelated to programming but by watching it you become a good developer overnight)