Skip to content

Commit

Permalink
Update README
Browse files Browse the repository at this point in the history
  • Loading branch information
akcyp committed Jan 17, 2025
1 parent 797746a commit 4845e62
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,14 +37,16 @@ npm i react-lasso-select
Import the main js module:

```js
import ReactLassoSelect from 'react-lasso-select';
import { ReactLassoSelect } from 'react-lasso-select';
```

## Example

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)

```jsx
import { useState } from 'react';
import ReactLassoSelect, { getCanvas } from 'react-lasso-select';
import { ReactLassoSelect, getCanvas } from 'react-lasso-select';

export default function App() {
const src = './demo.jpg';
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "react-lasso-select",
"version": "2.0.0",
"version": "2.0.1",
"description": "A responsive react tool for marking irregular areas in images (lasso / free select)",
"author": "akcyp",
"license": "ISC",
Expand Down

0 comments on commit 4845e62

Please sign in to comment.