Snippets about React
1 snippet
-
SNP099
Clean up event listeners in useEffect
The resize listener that stayed alive after the component was gone, and how to not do that.
14 lines of jsx in 2 blocks, 5 lines of explanation.
#A51
1 snippet
SNP099
The resize listener that stayed alive after the component was gone, and how to not do that.
14 lines of jsx in 2 blocks, 5 lines of explanation.