@softbind/hook-use-title
TypeScript icon, indicating that this package has built-in type declarations

0.0.4 • Public • Published

useTitle

Installation

npm i @softbind/hook-use-title --save

API

useTitle(text)

Arguments

  • text: String: is a value that you would to see in tab title.
import { useTitle } from "@softbind/hook-use-title";

const PageTemplate = ({ title, children }) => {
  useTitle(title)

  return (
    <div>
      <h1>{title}</h1> {children}
    </div>
  );
};

Package Sidebar

Install

npm i @softbind/hook-use-title

Weekly Downloads

0

Version

0.0.4

License

MIT

Unpacked Size

3.04 kB

Total Files

9

Last publish

Collaborators

  • hiddenboox