Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Go to Latest
function useContext
import { useContext } from "https://deno.land/x/fathym_atomic_design_kit@v0.0.112-integration/src/src.deps.ts";

Returns the current context value, as given by the nearest context provider for the given context. When the provider updates, this Hook will trigger a rerender with the latest context value.

Parameters

context: PreactContext<T>

The context you want to use