JSFiddle - React, Tailwind, and code Playground

HTML

<div id="content">
            <label>Link Name:</label>
            <input type="text" id="linkName">
            <a id="link" href="https://teamtreehouse.com"></a>
        </div>

JavaScript

let inputValue = document.getElementById('linkName').value = "Chris";
document.getElementsByTagName('a')[0].textContent = inputValue;