@Kuba Well to use your specific example, there are lots of examples of reusable slider components. This is the one I use:
material-ui.com/components/slider Conceptually it's like sliders in Mathematica. There is a value that is passed to the slider, and if you want to "reset" it, you just make a button to set that value back to 0 or 1/2 or whatever.