Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feature: Hook version #40

Open
baleeds opened this issue Mar 2, 2020 · 1 comment
Open

feature: Hook version #40

baleeds opened this issue Mar 2, 2020 · 1 comment

Comments

@baleeds
Copy link

baleeds commented Mar 2, 2020

I've implemented this as a hook if you're interested in a PR?

useOutsideClickHandler(ref, handleOutsideClick, {
  useCapture: false,
  disabled: false,
});
@ljharb
Copy link
Collaborator

ljharb commented Mar 2, 2020

It'd be reasonable to add as an additional entry point, as long as it had good tests, and it explicitly threw when someone required/imported it and the right version of React wasn't available.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants