Skip to content

Instantly share code, notes, and snippets.

@NeoYo
Last active September 17, 2021 13:12
Show Gist options
  • Save NeoYo/a63ee9837c836d43552a95c44abc5edf to your computer and use it in GitHub Desktop.
Save NeoYo/a63ee9837c836d43552a95c44abc5edf to your computer and use it in GitHub Desktop.
How to Use React useEffect - Declare
// react/index.d.ts
type DependencyList = ReadonlyArray<any>;
function useEffect(effect: EffectCallback, dep?: DependencyList): void;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment