JSFiddle - React, Tailwind, and code Playground

HTML

<form method='POST'>
    <input type='text' name="name" value='myName'>
    <input type="submit" value="Go" />
</form>
<p>
    <?php $name=$ _POST[ 'name']; echo $name ?>
</p>