반응형
Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | ||
6 | 7 | 8 | 9 | 10 | 11 | 12 |
13 | 14 | 15 | 16 | 17 | 18 | 19 |
20 | 21 | 22 | 23 | 24 | 25 | 26 |
27 | 28 | 29 | 30 | 31 |
Tags
- console.log
- 알파테스트
- KeyboardEvent
- typescript
- 게임용어
- useref
- react
- useEffect
- Git
- branch
- changeEvent
- 깃 브랜치 삭제
- FGT
- react에러
- useRef에러
- OBT
- 원격
- delete branch
- StrictMode
- 2번실행
- onchange
- reactStrictMode
- onkeypress
- MutableRefObject
- 로컬
- reactjs
- undefine
- event type
- nextjs
- ts2322
Archives
- Today
- Total
목록undefine (1)
min.js
react useRef 에러 TS2322 MutableRefObject<undefined>
react useRef 사용하면서 자주 겪는 에러 TS2322 MutableRefObject 해결방법 useRef를 사용하고 나니 아래와 같은 에러와 함께 빨간줄이 그어졌다.. Type 'MutableRefObject' is not assignable to type 'LegacyRef | undefined'. Type 'MutableRefObject' is not assignable to type 'RefObject'. Types of property 'current' are incompatible. Type 'undefined' is not assignable to type 'HTMLDivElement | null'.ts(2322) index.d.ts(125, 9): The expected type c..
React
2024. 1. 30. 10:00