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

Method render

typings/tests/basic.tsx:14–42  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

12 };
13
14 render() {
15 return (
16 <section>
17 <div className="dropzone">
18 <Dropzone onDrop={this.onDrop}>
19 {({ getRootProps, getInputProps }) => (
20 <div {...getRootProps()}>
21 <input {...getInputProps()} />
22 <p>
23 Try dropping some files here, or click to select files to
24 upload.
25 </p>
26 </div>
27 )}
28 </Dropzone>
29 </div>
30 <aside>
31 <h2>Dropped files</h2>
32 <ul>
33 {this.state.files.map((f) => (
34 <li key={f.name}>
35 {f.name} - {f.size} bytes
36 </li>
37 ))}
38 </ul>
39 </aside>
40 </section>
41 );
42 }
43}
44
45export const optional = (

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected