All Posts

Today I Learned: How mouse events really bubble in React

While researching a related topic, I came across a section in the React documentation for synthetic mouse events about how “the onMouseEnter and onMouseLeave events propagate from the element being left to the one being entered instead of ordinary bubbling and do not have a capture phase”. What does that even mean? Let’s explore!