반응형
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 |
Tags
- branch
- ts2322
- event type
- react
- Git
- react에러
- typescript
- changeEvent
- 2번실행
- useref
- reactjs
- nextjs
- onkeypress
- useEffect
- 로컬
- useRef에러
- 깃 브랜치 삭제
- undefine
- delete branch
- MutableRefObject
- 알파테스트
- 원격
- 게임용어
- KeyboardEvent
- FGT
- OBT
- onchange
- console.log
- StrictMode
- reactStrictMode
Archives
- Today
- Total
목록useref (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