Last active
May 22, 2021 17:25
-
-
Save shailesh87/e586460db4026a15cde3450328b8781c to your computer and use it in GitHub Desktop.
This file contains hidden or 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
// useEffect hook run in mount and every state change if no dependency array is provided | |
useEffect(() => { | |
console.log('component mount', count); | |
console.log('component update', count); | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment