react-lasso-select 2.0.0 → 2.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +4 -2
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -37,14 +37,16 @@ npm i react-lasso-select
|
|
|
37
37
|
Import the main js module:
|
|
38
38
|
|
|
39
39
|
```js
|
|
40
|
-
import ReactLassoSelect from 'react-lasso-select';
|
|
40
|
+
import { ReactLassoSelect } from 'react-lasso-select';
|
|
41
41
|
```
|
|
42
42
|
|
|
43
43
|
## Example
|
|
44
44
|
|
|
45
|
+
See: [https://github.com/akcyp/react-lasso-select/blob/main/src/App.tsx](https://github.com/akcyp/react-lasso-select/blob/main/src/App.tsx)
|
|
46
|
+
|
|
45
47
|
```jsx
|
|
46
48
|
import { useState } from 'react';
|
|
47
|
-
import ReactLassoSelect,
|
|
49
|
+
import { ReactLassoSelect, getCanvas } from 'react-lasso-select';
|
|
48
50
|
|
|
49
51
|
export default function App() {
|
|
50
52
|
const src = './demo.jpg';
|