This example shows how to use use_thread to create a countdown timer.
The UI code demonstrates a lot of conditional rendering.