Engrain by ByteRush

WEB.03 4 concepts

Events in depth

Master event propagation and input events.

  1. WEB.03.01Capture, target and bubble phasesCoreJuniorBeing written
  2. WEB.03.02Event delegation at scaleCoreJuniorBeing written
  3. WEB.03.03Pointer, keyboard, focus and input eventsMid-levelBeing written
  4. WEB.03.04Custom events and passive listenersMid-levelBeing written

Interview questions in this module

  1. Explain event bubbling and capturing.
  2. What is the difference between stopPropagation and preventDefault?
  3. What is a passive event listener and why does it help scrolling?
  4. Which events do not bubble?
  5. Is dispatchEvent synchronous or asynchronous?
  6. How does React handle events under the hood?