@bomihooks/use-title
v1.0.2
Published
React Hook to update your document's title
Downloads
2
Readme
@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>
);
}