&gt; UIs aren&#x27;t stateless<p>i would agree that this is the traditional perspective.<p>i&#x27;m not convinced this is necessarily the case; there may be other ways to look at it.  it could be that the ui &quot;value&quot; is the output of a series of functions, and that what might look like a &quot;state&quot; change is really a &quot;new&quot; ui being rendered.<p>(maybe this is what &quot;frp&quot; gives us, or perhaps &quot;immediate mode gui&quot; that sometimes pops up in game development circles; but i&#x27;m not very familiar with either.)