Respuesta :

The use effect runs by default after every render of the component. When placing use effect in our component we tell React that we want to run the callback as an effect. React will run the effect after rendering and after performing the DOM update