Removed test upload component
This commit is contained in:
1 parent
4e1f0095a7
commit
30c9c1d0a3
1 file changed
-17
@@ -1,17 +0,0 @@
|
||||
import { useState } from "react";
|
||||
|
||||
const TestUpload = () => {
|
||||
const [file, setFile] = useState();
|
||||
function handleChange(e) {
|
||||
setFile(URL.createObjectURL(e.target.files[0]));
|
||||
}
|
||||
|
||||
return (
|
||||
<div>
|
||||
<input type="file" onChange={handleChange} />
|
||||
<img src={file} />
|
||||
</div>
|
||||
);
|
||||
};
|
||||
|
||||
export default TestUpload;
|
||||
Reference in new issue
Block a user