Skip to content

Commit

Permalink
update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
samanmohamadi committed May 4, 2021
1 parent 0f41211 commit 7d739e2
Show file tree
Hide file tree
Showing 2 changed files with 125 additions and 413 deletions.
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
Install it with yarn:

```
yarn add use-debounced-effect --save
yarn add use-debounced-effect
```

Or with npm:
Expand All @@ -24,6 +24,8 @@ export default function Input() {
useDebouncedEffect(()=>{
console.log(term); // debounced 1sec
// call search api ...

// return () => maybe cancel prev req
}, 1000 ,[term]);

return (
Expand Down
Loading

0 comments on commit 7d739e2

Please sign in to comment.