Let's see this in an example. Say you want a user to click a button that resets a slider.
To have the slider's value update on the button click, you need to use a callback function with the on_click parameter of st.button:
```python
the callback function for the button will add 1 to the
slider value up to 10
def plus_one():
    if st.session_state["slider"] < 10:
        st.session_state.slider += 1
    else:
        pass
    return
when creating the button, assign the name of your callback
function to the on_click parameter
add_one = st.button("Add one to the slider", on_click=plus_one, key="add_one")
create the slider
slide_val = st.slider("Pick a number", 0, 10, key="slider")
```
Relevant resources
Caching Sqlite DB connection resulting in glitchy rendering of the page
Select all checkbox that is linked to selectbox of options
