Skip to content

🐸 Rybbit - open-source and privacy-friendly alternative to Google Analytics that is 10x more intuitive.

165 B
Raw Blame
import { useEffect } from "react";

export const useSetPageTitle = (title: string) => {
  useEffect(() => {
    if (title) document.title = title;
  }, [title]);
};