In React, why does an onclick event listener on an outer element execute before an inner element's onclick event listener when using addEventListener? – Reactjs
I'm trying to understand the order in which events are being executed in a React application. Given the following sample component, why would I be observing "OUTER ELEMENT" logged before "INNER ELEMENT" when I click on the inner div element?…