Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

x/netzo/deps/preact/hooks.ts>useContext

Full-stack Deno framework for building business web apps like internal tools, dashboards, admin panels and automated workflows.
Go to Latest
function useContext
import { useContext } from "https://deno.land/x/netzo@0.4.40/deps/preact/hooks.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