JSFiddle - React, Tailwind, and code Playground

HTML

<h1>heading <a href="#">link</a></h1>

CSS

h1{
    text-align:center;
}
h1 a{
    float:right;
}