Created
June 9, 2020 15:02
-
-
Save louisrli/c136857f6d6ca7d26df868a985bd86bc to your computer and use it in GitHub Desktop.
Discussion questions on React.useEffect()
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
1. When does a React component re-render? | |
2. What does the React.useMemo hook do? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
3.How can you replicate componentWillUnmount using useEffect ?
4. How can you replicate componentDidUpdate using useEffect ?