UseEffect and its class-based equivalent lifecycle methods
Introduction We all know that the components in React undergo three main phases namely - mount, update & unmount. The mount phase is when a component initially renders on the screen for the first time. The update phase is when a component prop or st...