From e63f058e35ec48d28e9991486083f396cc3ba78b Mon Sep 17 00:00:00 2001 From: "Begerad, Stefan" Date: Thu, 22 Jun 2023 06:28:55 +0200 Subject: [PATCH] refactor(csv-column-read2dom): get rid of excess file app/components/input.jsx --- csv-column-read2dom/app/components/input.jsx | 27 -------------------- 1 file changed, 27 deletions(-) delete mode 100644 csv-column-read2dom/app/components/input.jsx diff --git a/csv-column-read2dom/app/components/input.jsx b/csv-column-read2dom/app/components/input.jsx deleted file mode 100644 index a858848..0000000 --- a/csv-column-read2dom/app/components/input.jsx +++ /dev/null @@ -1,27 +0,0 @@ -import React from 'react'; - -const Input = () => { - const handleChange = (e) => { - const reader = new FileReader(); - reader.onload = () => { - // @ts-ignore - document.getElementById('out').innerHTML = reader.result; - }; - // start reading the file. When it is done, calls the onload event defined above. - // @ts-ignore - reader.readAsBinaryString(document.getElementById('csv-input').files[0]); - }; - return ( - <> -

Input

- -

File contents will appear here

- - ); -}; -export default Input;