pub fn use_bridge<T, F>(on_output: F) -> UseBridgeHandle<T>where
    T: Bridged,
    F: 'static + Fn(<T as Agent>::Output),
Expand description

A hook to bridge to an Agent.

This hooks will only bridge the agent once over the entire component lifecycle.

Takes a callback as the only argument. The callback will be updated on every render to make sure captured values (if any) are up to date.