JSFiddle - React, Tailwind, and code Playground

HTML

<div class="heading">
    text
</div>

CSS

.heading {
    background: blue;
    width: auto;
}