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

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

Full-stack Deno framework for building business web apps like internal tools, dashboards, admin panels and automated workflows.
Go to Latest
function useEffect
import { useEffect } from "https://deno.land/x/netzo@0.4.40/deps/preact/hooks.ts";

Accepts a function that contains imperative, possibly effectful code. The effects run after browser paint, without blocking it.

Parameters

effect: EffectCallback

Imperative function that can return a cleanup function

optional
inputs: Inputs

If present, effect will only activate if the values in the list change (using ===).