isInteractiveElement = (
  tagName: string,
  attributes: Array<Node>,
): boolean => {
  // Do not test higher level JSX components, as we do not know what
  // low-level DOM element this maps to.
  if (!dom.has(tagName)) {
    return false;
  }

  return checkIsInteractiveElement(tagName, attributes);
}
Returns boolean indicating whether the given element is
interactive on the DOM or not. Usually used when an element
has a dynamic handler on it and we need to discern whether or not
it's intention is to be interacted with on the DOM.