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

x/fathym_atomic/src/src.deps.ts>useEffect

This is the core atomic library to build design libraries from.
Go to Latest
function useEffect
import { useEffect } from "https://deno.land/x/fathym_atomic@v0.0.122/src/src.deps.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 ===).