Skip to content

Commit

Permalink
chore(useEffect): add jsdoc to useffect for type hints
Browse files Browse the repository at this point in the history
  • Loading branch information
tristonarmstrong committed Oct 12, 2024
1 parent ff6279f commit 631f19a
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions packages/lib/src/hooks/useEffect.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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[]
Expand Down

0 comments on commit 631f19a

Please sign in to comment.