withState

inline fun <S : State<St>> withState(): ComponentRef

Register a State component in the device.