declare array of strings typescript code example
Example 1: useStae with array of strings typescript
const [devices, setDevices] = useState<string[]>([])
Example 2: typescript array
let list: number[] = [1, 2, 3];
const [devices, setDevices] = useState<string[]>([])
let list: number[] = [1, 2, 3];