title: How do I postion both component on the far left and right and inline in react?
body: <p>How do I postion both component on the far left and right and inline in react? the create button just cant go inline and to the right.</p>
  
  <pre><code>&lt;div className="card-header"&gt;
      &lt;div className="col-6"&gt;
          &lt;h5&gt;Products Category&lt;/h5&gt;
      &lt;/div&gt;
      &lt;div className="btn-popup col-6 pull-right"&gt;
          &lt;button type="button" className="btn btn-primary" onClick={this.onOpenModal} data-toggle="modal" data-original-title="test" data-target="#exampleModal"&gt;Create&lt;/button&gt;
          &lt;Modal open={open} onClose={this.onCloseModal} &gt;
              &lt;AddDiscount/&gt;
          &lt;/Modal&gt;
      &lt;/div&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p><a href="https://i.stack.imgur.com/3euso.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/3euso.png" alt="ri"></a></p>