Function dioxus_hooks::use_context_provider[][src]

pub fn use_context_provider<'a, T: 'static>(
    cx: &'a ScopeState,
    f: impl FnOnce() -> T
)
Expand description

Provide some state for components down the hierarchy to consume without having to drill props.