JSFiddle - React, Tailwind, and code Playground

by Marcus Ekwall

HTML

<textarea></textarea>

JavaScript

$("textarea").bind('keydown', function(event){
    var offset = $this.offset();
    console.log(offset);
});