Attach an observer to the lifecycle of the current Context. The observer will be detached when the context is destroyed.
An observable (e.g. a Cell or an Emitter).
The event handler.
<Observe from={emitter} then={event => doSomething(event)}/> Copy
<Observe from={emitter} then={event => doSomething(event)}/>
Attach an observer to the lifecycle of the current Context. The observer will be detached when the context is destroyed.