OnBuilder

The builder is bundled in the NPM package @tmorin/ceb-elements-builders.

The builder handles the addition and removal of DOM event listeners.

Challenge yourself

Will you be able to ...

  1. display Hello, World! only when the click event comes from a button? c.f. Event Delegation ;)
  2. display Hello, World! only on double click? there is a native event for that ;)

See the Pen <ceb/> ~ challenge/OnBuilder by Thibault Morin (@tmorin) on CodePen.