You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The current recommendation for functional components is adding a static handler function. This solution doesn't work when the functional component is rendered multiple times.
It should be possible to add a compontent which accepts a callback that is called every time the outside was clicked.
The current recommendation for functional components is adding a static handler function. This solution doesn't work when the functional component is rendered multiple times.
It should be possible to add a compontent which accepts a callback that is called every time the outside was clicked.
It could be used with React hooks like this:
Could this be added to this repository?
The text was updated successfully, but these errors were encountered: