Argument of type 'string' is not assignable to parameter of type 'SetStateAction<number>' code example Example: string is not assignable to type never const result : string[] = [];