I want to click the CSV download link after the data loaded from the server. I tried all the approaches from https://github.com/react-csv/react-csv/issues/237
const csvLinkRef = React.useRef<CSVLink & HTMLAnchorElement & { link?: HTMLAnchorElement }>();
<CSVLink
ref={csvLinkRef}
data={tableDataToDownLoadAsCSV}
/>
