JSFiddle - React, Tailwind, and code Playground

HTML

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <script src="../../Scripts/jquery-2.0.3.js"></script>
    <script type="text/javascript">

        $(document).ready(function () {

            //
            var myDate = localStorage.getItem('dateDisableButton');

            //
            if (myDate == null)
            {
                //
                $('#like').click(function ()
                {
                    //
                    var myDate = new Date();
                    myDate.setDate(myDate.getDate() + 1);
                    alert(myDate);

                    // save date in local storage => ersistence: localStorage is used for long-term storage. Its data persists even after the window is closed. The data stored in sessionStorage is lost when the browser window closes
                    localStorage.setItem('dateDisableButton', myDate);
                    $(this).attr("disabled", "disabled");
                });
            }
            else
            {
                //
                if (new Date() > myDate)
                    $('#like').prop('disabled', false); 
                else
                    $('#like').prop('disabled', true);
            }
        });
    </script>
</head>
<body>
    <form id="form1" runat="server">
    <input id="like" class ="vote" type="button" value="Like" />
    </form>
</body>
</html>