JSFiddle - React, Tailwind, and code Playground

by Slava Fomin II

HTML

<div id="my-input">
  <input type="text">
</div>

JavaScript

const component = document.getElementById('my-input');

component.addEventListener('input', even => console.log({ event }));