JSFiddle - React, Tailwind, and code Playground

by yangchenyun

HTML

<input onChange='alert(this.value)' />

JavaScript

$('input').keyup(function (e) {
    if (e.which === 13) {
        alert(this.value);
    }
});