JSFiddle - React, Tailwind, and code Playground

HTML

<input type="text" class="test">

JavaScript

$(".test").bind("keyup input paste", function() {
    alert("U heeft de tekst verandert!");// hier je berekening
    });