-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Closed
Description
How can I handle asynchronous logic?
For instance, how can I create a button 'sleep' which writes to a div 'sleeping' for a given amount of time, and when the process is finished, writes 'awake'?
I can create a callback launching the asynchronous process with an event on the button, and write 'sleeping' to the div, but how can I change to 'awake' when the process finishes?
Metadata
Metadata
Assignees
Labels
No labels