JSFiddle - React, Tailwind, and code Playground

by Qwerty_Wasd

HTML

<input type="text" id="text">

JavaScript

document.getElementById(`text`).addEventListener(`input`, e => 
	console.log(e.currentTarget.value.split``.map(c => c.charCodeAt(0)))
});