Skip to content

Commit

Permalink
Update README.md (#473)
Browse files Browse the repository at this point in the history
* Update README.md

Added useState import to the example code.

* Update README.md

* Update README.md
  • Loading branch information
huseyinbuyukdere committed Jun 22, 2023
1 parent 3b5e8d5 commit 8dcdec2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ npm install react-easy-crop --save
> Thus, you need to wrap it with an element that uses `position: relative` or the Cropper will fill the whole page.
```js
import { useState, useCallback } from 'react'
import Cropper from 'react-easy-crop'

const Demo = () => {
Expand Down

0 comments on commit 8dcdec2

Please sign in to comment.