JSFiddle - React, Tailwind, and code Playground

HTML

<div class="container">
    <div style="float:left;">Hi I am a <br/>floating child LoL!</div>

  <div style="clear:both;"></div>
</div>

<br/><br/><br/>

<div class="container">
  <div style="float:left;">Hi I am a <br/>floating child LoL!</div>
</div>


<br/><br/><br/><br/><br/><br/>
<hr/>

The first container has the clear, and the second not. The first is correct.

CSS

.container {padding:10px; background:#ffcc00; color:#333;}