질문&답변
질문있습니다...
`return`을 해줘야 다음 `then`에서 이어져요.
- 좋아요수
- 1
- 댓글수
- 4
- 조회수
- 499
질문&답변
`return`을 해줘야 다음 `then`에서 이어져요.
질문&답변
useEffect( () => { const handleKeyPress = e => e.keyCode == 27 && onClose(); window.addEventListener('keyup', handleKeyPress); return () => { window.removeEventListener('keyup', handleKeyPress); }; }, [] );