Last active
September 17, 2021 13:12
-
-
Save NeoYo/a63ee9837c836d43552a95c44abc5edf to your computer and use it in GitHub Desktop.
How to Use React useEffect - Declare
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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