UseState¶
method
cref: M:Microsoft.UI.Reactor.Core.RenderContext.UseState``1(``0,System.Boolean)
Summary¶
Declares a piece of state. Returns (currentValue, setter).
Must be called in the same order every render (just like React hooks).
method
cref: M:Microsoft.UI.Reactor.Core.RenderContext.UseState``1(``0,System.Boolean)
Declares a piece of state. Returns (currentValue, setter).
Must be called in the same order every render (just like React hooks).