I\'m using React.JS for a build, and am building a range input slider with two choices for a component.
this is my code:
I hope the above solutions might have resolved your issue, I have one simple approach using hooks.
const RangeSlider = () => { const [rangeval, setRangeval] = useState(null); return ( setRangeval(event.target.value)} /> The range value is {rangeval} ); }; export default RangeSlider;