4 ms·Better yet element.addEventListener("click", self.handleClick.bind(this))by janci 9y agoBetter yet element.addEventListener("click", self.handleClick.bind(this))rayshan 9y agoThis is less performant, because bind creates a new function with new context. At the framework level, bind is avoided at all costs.janci 9y agoThe overhead is not important, if you bind once. It becomes problem, if you do it too often, like in react render function.