Function sycamore_reactive::use_context[][src]

pub fn use_context<T: Clone + 'static>() -> T
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.