일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 | 31 |
Tags
- 결정 알고리즘
- app router
- CORS
- 태그된 유니온
- recoil
- map
- React
- 반공변성
- tailwind
- 리터럴 타입
- 호이스팅
- webpack
- async/await
- autosize
- Promise
- RTK Query
- 타입 좁히기
- 공변성
- 인터섹션
- 무한 스크롤
- 투포인터
- Jest
- Cypress
- CI/CD
- useAppDispatch
- SSR
- TS
- 이분 검색
- dfs
- ESlint
Archives
- Today
- Total
목록TSX (1)
짧은코딩
React with TS
React FunctionComponent interface P { name: string, title: string, } // ReactElement는 굳이 안해도 된다. const WordRelay: FunctionComponent = (): ReactElement => { } FC가 FunctionComponet의 줄임말이다. 리액트 17버전에서는 VFC도 있었는데 18버전에서는 사라졌다. VFC와 FC의 차이는 VFC는 children이 없고 FC는 childrend이 있다. 따라서 FC children를 사용하고 싶다면 interface P { name: string, title: string, children?: ReactNode | undefined; } const WordRelay: FC ..
TS/TS(with ZeroCho)
2022. 9. 12. 22:53