Pregunta de entrevista de SmartThings

How do you use state in app development?