JSFiddle - React, Tailwind, and code Playground

by Afzaal Ahmad Zeeshan

HTML

<input type="text" value="" />

JavaScript

$('input').keyup(function (something) {
    if(something.keyCode == 13) {
        $(this).val('Enter was pressed');
    }
});