lynx-community / lynx-community/reactlynx-use
[Feature]: Implement `useTapAway`
Open
@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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.