Function dioxus::prelude::use_context_provider[][src]

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

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