React hook that determines if the element is a child of the container.
Useful for traversing the DOM to find out if an event or action happened within the specified container.
Parameters
element: Node
The inner most element. Consider this the starting point.
match: Node
Returns boolean
Returns true if the element is a child of the container, false otherwise.
React hook that determines if the element is a child of the container. Useful for traversing the DOM to find out if an event or action happened within the specified container.