Function sycamore::context::use_context [−][src]
pub fn use_context<T>() -> T where
T: 'static + Clone,
Expand description
Get the value of a context in the current ReactiveScope
.
Panics
This function will panic!
if the context is not found in the current scope or a parent scope.
For a non-panicking version of this function, see try_use_context
.