Quantumbraid's picture
download
raw
370 Bytes
import React from "react";
import { useDropzone, DropzoneProps } from "../../";
export const Dropzone = ({ children, ...opts }: DropzoneProps) => {
const { ...state } = useDropzone(opts);
return children(state);
};
<Dropzone>
{({ getRootProps, getInputProps }) => (
<div {...getRootProps()}>
<input {...getInputProps()} />
</div>
)}
</Dropzone>;

Xet Storage Details

Size:
370 Bytes
·
Xet hash:
ae77137defbeab18f978626a3450b4841e4741d0be75ba677e865c1f39a14d37

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.