JSFiddle - React, Tailwind, and code Playground

HTML

<input type="range">
    <span>xx</span>

JavaScript

var input = document.querySelector("input");

input.addEventListener("input", function ( e ) {
    $('span').text(this.value);
    console.log( e.target.value );
});