title: How to add one event listener for two or more events in react
body: <p>I have a situation where in I have two events like onClick &amp; onSelect, I have same event handler for both. I want to know what is the best way to write in these cases, should we write a common method and then depending on event type call the event handler or there is some syntax that I can use in case event handlers are same. <strong>Just wanted to save few bites of code if possible.</strong> Also pls consider a situation where I have four event and same event handlers for all.</p>
  
  <pre><code>&lt;HAComboLink 
    label= {toI18Text(intl, "edit")}
    value="edit" 
    onClick={onEditCustomFieldClick(id)} 
    onSelect={onEditCustomFieldClick(id)} 
    id="edit"
  &gt;
    &lt;HAItem id="makeInactive" value="active" tabIndex="0"&gt;
      {toI18Text(intl, "make.inactive.label")}
    &lt;/HAItem&gt;
  &lt;/HAComboLink&gt;
  </code></pre>