4 ms·
With React, it's one and the same thing. React has a single event listener at the top level, then creates synthetic events that it passes down the tree. You can
by frosted-flakes 8y ago
With React, it's one and the same thing. React has a single event listener at the top level, then creates synthetic events that it passes down the tree. You can still do native event listeners, but there's no reason to, except for listening for events on `window`, etc.