Skip to content

Commit

Permalink
Use correct callback
Browse files Browse the repository at this point in the history
  • Loading branch information
Mamaduka committed Jul 6, 2021
1 parent a89883d commit 1c69fad
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/components/src/drop-zone/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@ const MyDropZone = () => {
<div>
{ hasDropped ? 'Dropped!' : 'Drop something here' }
<DropZone
onFilesDrop={ () => setState( { hasDropped: true } ) }
onHTMLDrop={ () => setState( { hasDropped: true } ) }
onDrop={ () => setState( { hasDropped: true } ) }
onFilesDrop={ () => setHasDropped( true ) }
onHTMLDrop={ () => setHasDropped( true ) }
onDrop={ () => setHasDropped( true ) }
/>
</div>
);
Expand Down

0 comments on commit 1c69fad

Please sign in to comment.