I have a react state variable like below.
const [dataSet,setDataSet] = useState([]);
This is an array