@bomihooks/use-title

1.0.2 • Public • Published

@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>
  );
}

Readme

Keywords

Package Sidebar

Install

npm i @bomihooks/use-title

Weekly Downloads

0

Version

1.0.2

License

MIT

Unpacked Size

1.42 kB

Total Files

3

Last publish

Collaborators

  • hibomi97