title: onClick event is not firing in reactjs
body: <p>I have written the simple ReactJS code. I need to fire an onClick event but it's not working on either button or span element. Here's the code snippet.</p>
  <pre><code>        function myStatus() {
              return (&lt;div className=&quot;col-md-11&quot;&gt;
                  &lt;label id=&quot;sliderLabel&quot; style={{ float: &quot;left&quot; }}&gt;
                  &lt;button id=&quot;sliderOn&quot; className=&quot;sliderOn&quot; onClick={this.activateModal}&gt; Activate &lt;/button&gt;
                  &lt;span id=&quot;sliderOff&quot; className=&quot;sliderOff&quot; onClick={this.deactivateModal}&gt; Deactivate  &lt;/span&gt;
                  &lt;/label&gt;
                &lt;/div&gt;)
          }
  </code></pre>
  <p>Can anyone please help me with this. Thanks in advance.</p>