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 ...
- display
Hello, World!
only when theclick
event comes from abutton
? c.f. Event Delegation ;) - 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.