title: How to apply onClick on tr except one td?
body: <p>I have this table in my react component. I need to apply <code>onClick</code> on all the <code>&lt;tr&gt;</code> but need to exclude last column(<code>&lt;td&gt;</code>).</p>
  <p>Is is possible to do that?</p>
  <pre><code>&lt;tr
    className=&quot;cursor-pointer&quot;
    key={activity._id}
    onClick={() =&gt;
      activeTab === &quot;active&quot;
        ? this.setState({ activity, completeModal: true })
        : this.setState({ activity, showModal: true })
    }
  &gt;
    &lt;td&gt;{moment(activity.date).format(&quot;MM/DD/YY h:mm a&quot;)}&lt;/td&gt;
    &lt;td&gt;{activity.manifestNumber}&lt;/td&gt;
    &lt;td&gt;
      &lt;NumberFormat
        thousandSeparator={true}
        displayType={&quot;text&quot;}
        value={activity.grossWeight}
      /&gt;{&quot; &quot;}
      lbs
    &lt;/td&gt;
    &lt;td&gt;{activity.facility.name}&lt;/td&gt;
  &lt;/tr&gt;
  </code></pre>