import Range from '..'; import React from 'react'; import ReactDOM from 'react-dom'; interface PageStates{ value:number } class App extends React.Component <{}, PageStates> { constructor(props) { super(props); this.state = { value: 128, }; } // This callback will be triggered when startValue and endValue aren't equal after moving. onChange(value) { console.log('onChange value:', value); } // This callback will be triggered when startValue and endValue aren't equal after mousedown/mousemove. You can call setState here when using a controlled component. onProcess(value) { console.log('onProcess'); this.setState({ value }); } formatter(value) { return `0 ~ ${value}`; } render() { return (