Q&A
질문있습니다...
`return`을 해줘야 다음 `then`에서 이어져요.
- Likes
- 1
- Comments
- 4
- Viewcount
- 499
Q&A
`return`을 해줘야 다음 `then`에서 이어져요.
Q&A
useEffect( () => { const handleKeyPress = e => e.keyCode == 27 && onClose(); window.addEventListener('keyup', handleKeyPress); return () => { window.removeEventListener('keyup', handleKeyPress); }; }, [] );