MCPcopy Create free account
hub / github.com/react-dropzone/react-dropzone / Dropzone

Function Dropzone

typings/tests/hook.tsx:4–7  ·  view source on GitHub ↗
({ children, ...opts }: DropzoneProps)

Source from the content-addressed store, hash-verified

2import { useDropzone, DropzoneProps } from "../../";
3
4export const Dropzone = ({ children, ...opts }: DropzoneProps) => {
5 const { ...state } = useDropzone(opts);
6 return children(state);
7};
8
9<Dropzone>
10 {({ getRootProps, getInputProps }) => (

Callers

nothing calls this directly

Calls 1

useDropzoneFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…