score:1

Accepted answer
const [dataId, setDataId] = useState<string[]>([]);

Related Query

More Query from same tag