scroll to top

PHOTO EMBED

Mon Sep 05 2022 06:45:48 GMT+0000 (UTC)

Saved by @wumeenna #typescript

  useEffect(() => {
    document.querySelector('main')?.scrollTo({
      top: 0,
      left: 0,
      behavior: 'smooth',
    });
  }, [id]);
content_copyCOPY