Will native events interrupt React fiber updates?

25 Views Asked by At

I know that events bound to dom in React will eventually be React's synthetic events, but if I use the following method

const dom = document.querySelector(xx); dom.addEventListener('click', () => { //do something }); So when I click, will the click event interrupt the React update? If so, how does the fiber know it needs to be interrupted?

Understand the inner workings

0

There are 0 best solutions below