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