A generator-based cooperative multitasking kernel for React.