Nomad

Nomad

  • 분류 전체보기 (227)
    • CleanCode (0)
    • TIL (196)
    • React (2)
    • javascript (14)
      • data structure (3)
      • nodejs (0)
      • web (1)
    • python (1)
    • 코딩 부트캠프 (7)
      • immersive (4)
      • 회고 (1)
  • 홈
  • 카테고리
  • 태그
  • 방명록
RSS 피드
로그인
로그아웃 글쓰기 관리

Nomad

컨텐츠 검색

태그

쟝소 closure TypeScript 클로저 generic react

최근글

댓글

공지사항

아카이브

TypeScript(1)

  • [TIL] React FunctionComponent props generic 으로 받기

    DropDown Component를 만들었고 props로 아래와 같은 인자를 받도록 만들었다. interface Props { items: Option[]; color?: string; onSelectlist?: (key: string) => void; } const DropDown: FunctionComponent = ({ items, color, selectlist, }) => { const selectedItem = find(listItems, { selected: true }); const changeKey = () => { ... if (selectedItem && selectlist) { onSelectlist(selectedItem.key as T); } ... } .... } export ..

    2020.10.20
이전
1
다음
티스토리
© 2018 TISTORY. All rights reserved.

티스토리툴바