배열의 타입을 선언해주는 방법
string[] number[] type[] useState<number[]>([]); interface todo{ id:number; thing:string; isDone:boolean; } useState<todo[]>([{id:1,thing:'thing',isDone:false}]);