check out this great article outlining how it can be very easy to misuse things like useCallback and useMemo dynamics in react projects
https://kentcdodds.com/blog/usememo-and-usecallback
And don’t forget – once React compiler lands we might be able to get rid of even more of these, then again don’t be too hasty….you may need to check a few things first like ensuring your hooks obey the rules of hooks for example, otherwise the auto wiring in React Compiler may not work as intended.