Posts by Giuseppe Fantoni • 43 points
1 post
-
3
votes1
answer37
viewsQ: What’s the difference between using one or two Arrow Functions in Useeffect?
In this reply from Soen, one uses a useEffect with two Arrow functions followed. Thus: useEffect(() => () => { window.removeEventListener('resize', compareSize); }, []); I wonder why the duo…