My React app suffers in performance from too many rerenders of a parent component because its children (mainly a slider) change the state too often when changin