Im using Ant Design Pro for UI development with react. I want to Download Sample CSV file When i click a download button. I tried many ways to do that but some errors are coming with the code. The CSV file is reading the data when it import.
import SampleCSV from '../../../../assets/documents/Sample.csv';
<Button type="link" href={SampleCSV} download={'Sample CSV'}>Download Sample CSV File</Button>