JSFiddle - React, Tailwind, and code Playground

HTML

<p id='display'></p>

JavaScript

var float_number = 2.0;
$('#display').html(float_number);