Engrain by ByteRush

WEB.03.02 JuniorCore — asked often

Event delegation at scale

Comes up in: Web fundamentals, Coding, Machine coding

This concept is being written. It gets the full five steps — explanation, predict, interview angle, practice with tests, and review cards. Here is exactly what it will cover, so you can study it elsewhere in the meantime.

What it covers

  • one listener on a container
  • event.target.closest()
  • dynamic children
  • delegation and shadow DOM retargeting
  • how React attaches listeners at the root (React 17+)

Words you will know

event delegationretargeting

What you will practise

  • delegated todo list
  • delegate helper