Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/netzo/deps/usehooks-ts.ts>useEffectOnce

Full-stack Deno framework for building business web apps like internal tools, dashboards, admin panels and automated workflows.
Go to Latest
function useEffectOnce
Deprecated
Deprecated
  • Don't use this hook, it'll be removed in the next major version. A hook that runs an effect only once (at mount).
import { useEffectOnce } from "https://deno.land/x/netzo@0.5.66/deps/usehooks-ts.ts";

Examples

useEffectOnce(() => { console.log('Hello World'); });

Parameters

  • The effect to run.