title: how to use data-target and data-toggle in Reactjs?
body: <p>I was converting a static <code>HTML</code> site which uses bootstrap to React.js
  Here there are several divs which do open only on data-target and data-toggle.</p>
  
  <pre class="lang-html prettyprint-override"><code>&lt;div className="card-header" id="headingFive"&gt;
     &lt;h5 className="mb-0"&gt;
        &lt;button
              className="btn btn-link"
              type="button"
              data-toggle="collapse"
              data-target="#collapseFive"
              aria-expanded="true"
              aria-controls="collapseOne"&gt;
              Site Wide Events
        &lt;/button&gt;
      &lt;/h5&gt;
  &lt;/div&gt;
  
  &lt;div
     id="collapseFive"
     className="collapse show"
     aria-labelledby="headingFive"
     data-parent="#accordionThree"&gt;
      &lt;div className="card-body"&gt;
          &lt;div className="row"&gt;
              &lt;div className="col wall"&gt;
                  &lt;h4 className="text-center"&gt;12&lt;/h4&gt;
                  &lt;p className="text-center"&gt;Target&lt;/p&gt;
              &lt;/div&gt;
              &lt;div className="col"&gt;
                  &lt;h4 className="text-center"&gt;13&lt;/h4&gt;
                  &lt;p className="text-center"&gt;Actual&lt;/p&gt;
              &lt;/div&gt;
          &lt;/div&gt;
      &lt;/div&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>I don't want to use any other <code>npm</code>module for the same. </p>
  
  <p>I tried this but was not able to solve.</p>
  
  <pre><code>componentDidUpdate() {
      $('.collapse').bootstrapToggle();
  }
  </code></pre>