JSFiddle - React, Tailwind, and code Playground
HTML
<input type="range" oninput="onInput(this.value)" onchange="onChange(this.value)">
JavaScript
let lastNum = 0;
function onInput(value) {
if(lastNum < value) {
console.log("+");
} else {
console.log("-");
}
lastNum = value;
}