Hỏi & Đáp
질문있습니다...
`return`을 해줘야 다음 `then`에서 이어져요.
- Lượt thích
- 1
- Số bình luận
- 4
- Lượt xem
- 499
Hỏi & Đáp
`return`을 해줘야 다음 `then`에서 이어져요.
Hỏi & Đáp
useEffect( () => { const handleKeyPress = e => e.keyCode == 27 && onClose(); window.addEventListener('keyup', handleKeyPress); return () => { window.removeEventListener('keyup', handleKeyPress); }; }, [] );