<aside> ✅ typescript를 쓰는 이유는 디버깅이 편해서 → 단순히 자바스크립트를 쓸 때에 비해 변수에 대한 타입 정보를 줌으로써, 디버거가 미리미리 에러를 알려줌
</aside>
22.08.18(thur)
→ 이렇게 type 을 보장해줘야 에러가 안남
https://bobbyhadz.com/blog/react-useref-object-is-possibly-null#:~:text=The issue in the code,before accessing properties on it.
→ useRef, canvas 쓸 때 좋은 레퍼런스
https://basketdeveloper.tistory.com/79
→ scrollY event listener custom Hook
https://velog.io/@taeung/React-Custom-Hooks로-Scroll-Event-구현하기