JSFiddle - React, Tailwind, and code Playground

HTML

<div>
0.1 + 0.2 = <input id="sum"/>
</div>

CSS

div {
  width: 300px;
}

JavaScript

$("#sum").val(0.1 + 0.2);