일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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
- Javascript
- hook
- React 공식문서
- react
- Babel
- codingtest
- React 고급 안내서
- RTK Query
- React 18
- 고급안내서
- CSS
- Render Props
- Nextjs
- background setttimeout
- Programmers
- React 고급안내서
- next13 head
- react-helmet
- background: url
- background setInterval
- react hook
- Next13
- context
- background tab
- React API 참고서
- React18
- notFound()
- React 18 Nextjs
- getUTCDate
- Nextjs React 18
Archives
- Today
- Total
목록react/typescript (1)
akjfal
Cannot invoke an object which is possibly 'undefined'
에러 발생 코드 //useAlert.ts return [{sentence, isOpen}, {open, close}] //useLogin.ts const [alertData, alertAction] = useAlert(); ... alertAction.open("로그인 성공"); // error 발생 발생 에러 Cannot invoke an object which is possibly 'undefined'.ts(2722) Cannot invoke an object which is possibly 'undefined'.ts(2722) const alertAction: { sentence: any; isOpen: any; open?: undefined; close?: undefined; } | { open:..
react/typescript
2021. 1. 10. 22:20