'react js float clear property

I was trying to design this:

enter image description here

the css used for this is:

.body {
  border: 5px solid red;
  padding: 10px;
}
.one {
  float: right;
  height: 100px;
  width: 100px;
}
.two {
  float: left;
  height: 100px;
  width: 100px;
}
p {
  clear:right;
}

but if i use this code the output is: enter image description here

but it works fine if i remove

p {
clear:right;
}


Solution 1:[1]

The clear property controls the flow next to floated elements. when you set clear:right; it will be pushed below the right floated elements;

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Ali Navidi