title: How to align div horizontally in React JS?
body: <p>Below is just a snippet of my code:</p>
  
  <pre><code>return(
       &lt;div className='row'&gt;
           &lt;div&gt;row1&lt;/div&gt;&lt;div&gt;row2&lt;/div&gt;&lt;div&gt;row3&lt;/div&gt;
       &lt;/div&gt;
  );
  </code></pre>
  
  <p>I tried this, but it displays in vertical. Image attached below</p>
  
  <p><a href="https://i.stack.imgur.com/PrLiG.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/PrLiG.png" alt="enter image description here"></a></p>