import Range from '..'; import React from 'react'; import ReactDOM from 'react-dom'; const style = { marginBottom: '15px', }; const styleX3 = { marginBottom: '45px', }; class App extends React.Component { constructor(props) { super(props); this.state = { value: [ 10, 300 ], }; } // Controlled. onChange will be triggered when startValue isn't equal to endValue after sliding onChange(value) { console.log('onChange value:', value); this.setState({ value }); } // This callback will be triggered when startValue and endValue aren't equal after mousedown/mousemove. You shouldn't call setState here. onProcess(value) { // this.setState({value}); console.log('onProcess: ', value); } render() { return (

with tooltipVisible

with marks

with 0.01 step

); } } ReactDOM.render( , document.getElementById('range-demo-2'), );