Skip to content

useAppTitle

Hook for setting custom app title using SPA

Import

import useAppTitle from '@empeek-rnd-ui/hooks/src/useAppTitle';

Usage

//in your component
const SomeComponent = () => {
  useAppTitle('Some custom title');

  return (
    <div>
      {document.title}
    </div>
  );
}

Example