SmartThings interview question

How do you use state in app development?