Csv parsing

Example


Edit white-glitter-icji4


import csvToJson from "./parser/csvToJson";
import generateCsv from "./parser/generateCsv";
function App() {
const [generateWorker] = useWorker(generateCsv);
const [csvWorker, {status: csvWorkerStatus, kill: killWorker }] = useWorker(csvToJson);
const onWorkerCsvClick = async () => {
const fakeCsv = await generateWorker();
csvWorker(fakeCsv).then(result => {
console.log("Csv useWorker()", result);
addToast("Finished: Csv parsed using useWorker()", {
appearance: "success"
});
});
};
}

See Full code Github