An open API service indexing awesome lists of open source software.

https://github.com/zmitry/use-clickoutside

handle outside click with react hooks
https://github.com/zmitry/use-clickoutside

hooks outsideclick react typescript

Last synced: 10 months ago
JSON representation

handle outside click with react hooks

Awesome Lists containing this project

README

          

# use-clickoutside

React hook for outside clicks.

```jsx
import * as React from 'react'
import useOutsideClick from 'use-clickoutside'

export default function App({ close }) {
const ref = useOutsideClick(close)

return

content

}
```