1.0.2 • Published 3 years ago

@bomihooks/use-title v1.0.2

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

@bomihooks/use-title

React Hook to update your document's title Example

import { useTitle } from "@bomihooks/use-title";

export default function App() {
  const titleUpdater = useTitle("Loading...");
  setTimeout(() => titleUpdater("Home"), 5000);
  return (
    <div className="App">
      <h1>Hello CodeSandbox</h1>
      <h2>Start editing to see some magic happen!</h2>
    </div>
  );
}