array string contains typescript code example
Example 1: useStae with array of strings typescript
const [devices, setDevices] = useState<string[]>([])
Example 2: typescript check if element in array
your_array.includes(the_element)
const [devices, setDevices] = useState<string[]>([])
your_array.includes(the_element)