One thing to be considered when choosing between these two options is that event object will be passed to your handler on click, so if your handler expects this as the first argument and doesn’t need any other parameters, then there is no reason to additionally wrap it into a function. If you have custom handler and you need to pass extra arguments, then it is the way to go: