For development purposes I’d like to have the option to log all uses of useEffect
inside my React app. Is there an easy way to extend the behaviour of this function? I’m using Webpack, in case this would provide us with an extra way of doing so.
Also, because this will lead to many console.log
s, is there a way to tell them apart by providing information identifying the component that’s calling useEffect
?
I would like to have this behaviour to “visually” check (in the console) if the application redundantly rerenders.