Add statefulness to apps - Streamlit Docs
docs.streamlit.io › session-stateSession State is a way to share variables between reruns, for each user session. In addition to the ability to store and persist state, Streamlit also exposes the ability to manipulate state using Callbacks. In this guide, we will illustrate the usage of Session State and Callbacks as we build a stateful Counter app.