Skip to content

Commit f1f1e5d

Browse files
committed
docs: update README.md
1 parent 121632b commit f1f1e5d

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

README.md

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -30,11 +30,13 @@ import { useDropzone } from 'vue3-dropzone'
3030
export default {
3131
name: 'UseDropzoneDemo',
3232
setup() {
33-
const {
34-
getRootProps,
35-
getInputProps,
36-
...rest
37-
} = useDropzone(options)
33+
function onDrop(acceptFiles, rejectReasons) {
34+
console.log(acceptFiles)
35+
console.log(rejectReasons)
36+
}
37+
38+
const { getRootProps, getInputProps, ...rest } = useDropzone({ onDrop })
39+
3840
return {
3941
getRootProps,
4042
getInputProps,

0 commit comments

Comments
 (0)