Function wasm_react::hooks::use_callback
source · [−]pub fn use_callback<T, U, D>(
f: impl FnMut(T) -> U + 'static,
deps: Deps<D>
) -> PersistedCallback<T, U> where
T: 'static,
U: 'static,
D: PartialEq + 'static,
Expand description
Returns a persisted, memoized callback.