Skip to content

Commit

Permalink
main 🧊 return demo for use queue
Browse files Browse the repository at this point in the history
  • Loading branch information
debabin committed Jun 2, 2024
1 parent 85bb038 commit c9026c6
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions src/hooks/useQueue/useQueue.demo.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,14 +24,7 @@ const Demo = () => {
<button type='button' onClick={() => add(last === undefined ? 0 : last + 1)}>
Add
</button>
<button
type='button'
onClick={() => {
const removed1 = remove();
const removed2 = remove();
console.log('@', removed1, removed2);
}}
>
<button type='button' onClick={remove}>
Remove
</button>
</div>
Expand Down

0 comments on commit c9026c6

Please sign in to comment.