Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
ValentinH authored Sep 15, 2023
1 parent 422eddb commit ce2dccc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,9 +65,9 @@ const Demo = () => {
const [crop, setCrop] = useState({ x: 0, y: 0 })
const [zoom, setZoom] = useState(1)

const onCropComplete = useCallback((croppedArea, croppedAreaPixels) => {
const onCropComplete = (croppedArea, croppedAreaPixels) => {
console.log(croppedArea, croppedAreaPixels)
}, [])
}

return (
<Cropper
Expand Down

0 comments on commit ce2dccc

Please sign in to comment.