Files
Han Yeong-woo eb035fe370 Improve formatting (#1814)
* Ignore linting for examples in docs

* Formatting JSX single attribute per line

* Separte `format` and `lint:format` in package.json

* Bump prettier version

* Run format
2024-02-01 14:38:21 +01:00

7 lines
181 B
TypeScript

export default function downloadData(filename: string, data: string) {
const link = document.createElement('a');
link.download = filename;
link.href = data;
link.click();
}