@rooneyhooks/use-title

1.0.1 • Public • Published

useTitle

what is this ?

  • headtitle 안의 text를 바꿔주는 hook

install

npm install @rooneyhooks/use-title

Usage

import useTitle from "@rooneyhooks/use-title";

export default function App() {
    const titleUpdater = useTitle("...Loading");
    setTimeout(() => titleUpdater("Home"), 8000);
    return (
        <div className='App'>
            <h1>Hello</h1>
        </div>
    );
}

Readme

Keywords

Package Sidebar

Install

npm i @rooneyhooks/use-title

Weekly Downloads

0

Version

1.0.1

License

MIT

Unpacked Size

1.52 kB

Total Files

4

Last publish

Collaborators

  • rooney1992