#54UIEasy

useTitle

useTitle

React side-effect hook that sets title of the page.

Usage

import {useTitle} from 'react-use';

const Demo = () => {
  useTitle('Hello world!');

  return null;
};
// TODO: implement useTitle
function notImplemented(..._args: any[]): any {
  throw new Error('Not implemented');
}
export default notImplemented;
export const useTitle = notImplemented;

Open browser consoleTests