[react] Object is possibly 'null' (ft. typescript, useRef) 오류 해결


[react] Object is possibly 'null' (ft. typescript, useRef) 오류 해결

react hooks에서 간단한 input 을 사용하는 구조에서, focus()를 사용하기 위하여  해당 input 태그에 useRef 를 삽입하고, const inputRef = useRef(null)로 선언을 하였는데, focus 처리시, Object is possibl..

[react] Object is possibly 'null' (ft. typescript, useRef) 오류 해결에 대한 요약내용입니다.

자세한 내용은 아래에 원문링크를 확인해주시기 바랍니다.


원문링크 : [react] Object is possibly 'null' (ft. typescript, useRef) 오류 해결