JSFiddle - React, Tailwind, and code Playground

HTML

<input type="text" id="name" name="name" placeholder="First Name" />
<label for="First Name">First Name </label>

CSS

input+label { display: none; }

JavaScript

$(document).ready(function(){
    $('input[type="text"]').click(function() {
        var sd = $(this).attr('placeholder');
        $('label[for^="'+sd+'"]').fadeIn();
    });
});