JSFiddle - React, Tailwind, and code Playground

HTML

<input id="msg" type="text" name="msg" value="" />
<br />
<input type="submit" value="Contact Us" name="contact" class="button" />
<p></p>

JavaScript

$(document).ready(function () {
    $(".button").click(function () {

        $('p').text($('#msg').val());
    });
});