JSFiddle - React, Tailwind, and code Playground

HTML

<input id="degInput" type="text">

JavaScript

document.getElementById("degInput").setAttribute("value", "360 &#8226;");