string type array declare using react.usestate code example Example: useStae with array of strings typescript const [devices, setDevices] = useState<string[]>([])