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