일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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
- 인터섹션
- recoil
- tailwind
- dfs
- Cypress
- 공변성
- 리터럴 타입
- 반공변성
- 투포인터
- Jest
- ESlint
- 무한 스크롤
- TS
- CORS
- Promise
- autosize
- React
- webpack
- 결정 알고리즘
- 이분 검색
- app router
- CI/CD
- 타입 좁히기
- async/await
- map
- 태그된 유니온
- useAppDispatch
- RTK Query
- 호이스팅
- SSR
Archives
- Today
- Total
목록TSX (1)
짧은코딩

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