// 6 June 2022
useEffect
hook
On the confusion around React's It's June 2022 and there is a concerted effort underway to clarify the intention and behavior of ReactJS's useEffect() hook.
We find developers using it inside functional components as a handler for running other logic outside of the component's render step, but wondering repeatedly why it runs more than once at various times.
That is due to the original design of useEffect(), which in turn is due to the original class-based architecture of React components.