JSFiddle - React, Tailwind, and code Playground
HTML
<link rel="stylesheet" href="http://portal.zap.in.ua/weather-icons.css">
<div id="div">
</div>
JavaScript
var html='';
var weather='sunny'
var temp='30'
html += '<i class="wi-day-'+weather+'"></i>';
html += ' '+temp+'° '+weather;
div.innerHTML=html;