SmartThings Interview Question

How do you use state in app development?