1.0.4 • Published 2 years ago

react-composed-path v1.0.4

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

React Composed Path

A React component for handling clicks outside of a component

import {useComposedPath} from 'react-composed-path'

Examples

Single use:

useComposedPath('#box', '#button', setVisible)

Multiple use:

useComposedPath(['#box1', '#box2'], ['#button1', '#button2'], [setVisible1, setVisible2])
1.0.5

8 months ago

1.0.4

2 years ago

1.0.3

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago