{"_rev":"3-b5e25bbf1ef098d374632ec26b2f78c8","time":{"created":"2024-01-23T01:48:29.881Z","1.0.0":"2024-01-23T01:41:42.469Z","modified":"2024-01-23T01:48:30.352Z","1.0.1":"2024-01-23T01:48:30.109Z"},"_id":"@c-hooks/use-title","name":"@c-hooks/use-title","dist-tags":{"latest":"1.0.1"},"versions":{"1.0.1":{"name":"@c-hooks/use-title","version":"1.0.1","description":"React Hook to change your document's title.","main":"index.js","repository":{"type":"git","url":"git+https://github.com/YooHyeok/react-custom-hooks.git"},"keywords":["react","hooks","custom hooks","title","hooks"],"author":{"name":"YooHyeok School","email":"webdevyoo@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/YooHyeok/react-custom-hooks/issues"},"homepage":"https://github.com/YooHyeok/react-custom-hooks#readme","peerDependencies":{"react":"^18.2.0","react-dom":"^18.2.0"},"gitHead":"514716497d173820805daf025273ab4b9603deab","_id":"@c-hooks/use-title@1.0.1","_nodeVersion":"16.18.0","_npmVersion":"9.1.2","dist":{"integrity":"sha512-gBbnZt054YJ1lxbf5MFTisViF2hK2JzQk+s0blY9AIN63BD6d1YGX/ollU7nJr1/R6AHOC4Aj6S6cPCAlx5krQ==","shasum":"90c9496ecba273b9660a7d488ba7afccf15e500c","tarball":"https://registry.npmjs.org/@c-hooks/use-title/-/use-title-1.0.1.tgz","fileCount":4,"unpackedSize":2225,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQChTJfpZzFGDHWsZr+BXl0QAdWTixGdLEi5QR1GRBteiwIgRWDf8n2CBovZTARGJgFBws7m8Efc8OcLlG7Fn6lerNo="}]},"_npmUser":{"name":"yoohyeokschool","email":"webdevyoo@gmail.com"},"directories":{},"maintainers":[{"name":"yoohyeokschool","email":"webdevyoo@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/use-title_1.0.1_1705974509956_0.519094464484503"},"_hasShrinkwrap":false}},"maintainers":[{"name":"yoohyeokschool","email":"webdevyoo@gmail.com"}],"description":"React Hook to change your document's title.","homepage":"https://github.com/YooHyeok/react-custom-hooks#readme","keywords":["react","hooks","custom hooks","title","hooks"],"repository":{"type":"git","url":"git+https://github.com/YooHyeok/react-custom-hooks.git"},"author":{"name":"YooHyeok School","email":"webdevyoo@gmail.com"},"bugs":{"url":"https://github.com/YooHyeok/react-custom-hooks/issues"},"license":"MIT","readme":"# @c-hooks/use-title\n\nReact Hook to change your document's title.\n\n## Installation\n\n#### yarn\n\n`yarn add @c-hooks/use-title`\n\n#### npm\n\n`npm i @c-hooks/use-title`\n\n## Usage\n\n```js\nimport React from \"react\";\nimport useTitle from \"@c-hooks/use-title\";\n\nexport default function App() {\n  const titleUpdater = useTitle(\"Loading...\");\n  setTimeout(() => titleUpdater(\"Home\"), 1000); //1초마다 title text 변경\n  return (\n    <div className=\"App\">\n      <input\n        onChange={(e) => {\n          titleUpdater(e.target.value); //변경(입력)될때마다 title text 변경\n        }}\n      />\n    </div>\n  );\n}\n```\n\n### Arguments\n\n| Argument | Type   | Description                                | Required |\n| -------- | ------ | ------------------------------------------ | -------- |\n| initialTitle | any | The initial Title  changes to title element innerText | yes      |\n\n### Returns\n\n| Return | Type   | Description                                | Default value |\n| -------- | ------ | ------------------------------------------ | -------- |\n| setTitle | function | The setTitle function to be changeed states of title element innerText | null      |","readmeFilename":"README.md"}