diff --git a/packages/lib/src/hooks/useEffect.ts b/packages/lib/src/hooks/useEffect.ts index 6b93908..5151a78 100644 --- a/packages/lib/src/hooks/useEffect.ts +++ b/packages/lib/src/hooks/useEffect.ts @@ -5,6 +5,12 @@ import { useHook, } from "./utils.js" +/** + * Runs a function after the component is rendered, or when a value provided in the optional [dependency + * array](https://kaioken.dev/docs/hooks/dependency-arrays) has changed. + * + * [Kaioken Reference](https://kaioken.dev/docs/hooks/useEffect) + * */ export function useEffect( callback: () => void | (() => void), deps?: unknown[]