def session_demo_danger_callback(da_children, session_state=None, **kwargs):
    'Update output based just on state'
    if not session_state:
        return "Session state not yet available"

    return "Session state contains: " + str(session_state.get('bootstrap_demo_state', "NOTHING")) + " and the page render count is " + str(session_state.get("ind_use", "NOT SET"))
Update output based just on state