import { useState as u, useEffect as r } from "react";
const d = () => {
  const [n, s] = u(0);
  return r(() => {
    const e = () => {
      const o = document.body;
      o && s(o.getElementsByTagName("*").length);
    };
    e();
    const t = new MutationObserver(() => {
      e();
    });
    return t.observe(document.body, {
      childList: !0,
      subtree: !0
    }), () => {
      t.disconnect();
    };
  }, []), n;
};
export {
  d as default
};
//# sourceMappingURL=useDOMNodeCount.js.map
