React, JavaScript, Technology, Programming, Productivity.
dispatching events onMount or on prop change much simpler! Firing events on mount: To fire an event on mount, call useEffect with an empty array. Firing events in a container on component mount with hooks Firing events on prop changes: useEffect has the ability to watch your property between