# TS2322
총 2개의 포스트
TypeScript error - ts2322, Invalid hook call.
ts2322 Type '() => void' is not assignable to type 'null'.ts(2322)이렇게 하면 에러 발생이러면 해결...타입스크립트에서만 나는 에러다.. 꼭 타입 지정해주기!
2023년 2월 16일
·
0개의 댓글·
0[#useRef, #TS2322, #MutableRefObject<undefined>]React-Typescript에서 useRef를 쓰면서 겪은 에러
TS2322: Type 'MutableRefObject' is not assignable to type '((instance: HTMLInputElement | null) => void) | RefObject | null | undefined'. Type 'Mutab
2022년 2월 13일
·
0개의 댓글·
3