//! Hook-style helpers built on [`Signal`] and gpui's observation.
use ;
use Signal;
/// Create a piece of local state — React's `useState`. Call it in a view's
/// constructor and store the returned [`Signal`].
/// Re-render the calling view whenever `signal` changes — the wiring behind a
/// component "subscribing" to state. Call once per signal in the view's
/// constructor (where `cx` is the view's `Context`).