목록2022/06/02 (1)
Silver Library (Archived)
뭘 놓쳤을까? - Typescript, uuid, useState
TS로 일정표를 만들기 위해 필요한 것은, 크게 두갈래길로 보인다. 하나는, useState 를 사용하고, FC 를 선언 해 주면서 시작하는 것. FC , the component automatically accepts children provided to your component. It will not throw any typescript error, but it actually should, because the children do nothing. 나머지는, 비록 멋은 없어 보이지만 가장 친숙한 JS 위주의 표현식으로 진행하는 것. 예를 들면, 아래의 코드처럼 말이다. import { v4 as uuidV4 } from "uuid" type Task = { id: string title: stri..
Face the fear, build the future/Revision Sector
2022. 6. 2. 22:33