State is information about what a page or app is doing right now. It is like a small note that remembers whether a lamp is on, a menu is open, or a form has been sent.
An app can use state to show that a button was pressed or which tab is selected. When the state changes, the screen can update to match what happened.
State is not a permanent account record by itself. It often describes the current moment and may be reset when the page is refreshed or closed.
