Skip to content

Commit

Permalink
Merge pull request #22 from tristonarmstrong/chore/type-docs
Browse files Browse the repository at this point in the history
chore(useEffect): add jsdoc to useffect for type hints
  • Loading branch information
LankyMoose authored Oct 13, 2024
2 parents 655edd8 + 631f19a commit acaa414
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 acaa414

Please sign in to comment.