Refactor: simplify main function
Refactor: simplify main function

ozotto/react-rangeslider-extended-multiple,larsmaultsby/react-rangeslider,ozotto/react-rangeslider-extended-multiple,func-i/react-rangeslider,whoisandie/react-rangeslider,ozotto/react-rangeslider-extended-multiple,whoisandy/react-rangeslider