lynx-community / lynx-community/reactlynx-use

[Feature]: Implement `useTapAway`

Open
#7 2 comments 0 reactions 1 assignee View on GitHub

@Coooder-Crypto is already working on this.

Since Nov 28, 2025.

good first issue
Dominant language
TypeScript
Stars
42
Forks
5
PR merge metrics
No merged PRs in 30d

Description

### What problem does this feature solve?

Implementation of [useClickAway](https://github.com/streamich/react-use/blob/master/docs/useClickAway.md) on Lynx

### What does the proposed API of configuration look like?

```tsx
import { useRef } from '@lynx-js/react';
import { useTapAway } from '@lynx-js/react-use';

const Demo = () => {
const ref = useRef(null);

useTapAway(ref, () => {
console.log('OUTSIDE TAP');
});

return (

);
};
```

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.