UNPKG

@darwish/hooks-core

Version:

7 lines (6 loc) 266 B
/** * This hook is used to set the title of the page. * @param title The title of the page. * @param restoreOnUnmount Whether to restore the title when the component unmounts. */ export default function useTitle(title: string, restoreOnUnmount?: boolean): void;