JSFiddle - React, Tailwind, and code Playground
HTML
<input type="text" id="a" value="42"><br>
<input type="range" id="b" value="42">
JavaScript
a.oninput = function(){
b.value = this.value
}
b.oninput = function(){
a.value = this.value
}
<input type="text" id="a" value="42"><br>
<input type="range" id="b" value="42">
a.oninput = function(){
b.value = this.value
}
b.oninput = function(){
a.value = this.value
}