JSFiddle - React, Tailwind, and code Playground

HTML

<input type="text" id="keywords" />

JavaScript

$("#keywords").bind('paste', function() {

    var a = $(this).val();
    alert(a);
});