react-document-title-hook 1.0.0 → 1.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/README.md +20 -0
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -6,3 +6,23 @@ A tiny React component to update the document title.
6
6
 
7
7
  ```bash
8
8
  npm install react-document-title-hook
9
+ ```
10
+
11
+
12
+
13
+ ## Use Example
14
+
15
+ ```bash
16
+
17
+ import DocumentTitle from 'react-document-title-hook';
18
+
19
+ function HomePage() {
20
+ return (
21
+ <>
22
+ <DocumentTitle title="Home Page" />
23
+ <h1>Welcome to my site</h1>
24
+ </>
25
+ );
26
+ }
27
+
28
+ ```
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-document-title-hook",
3
- "version": "1.0.0",
3
+ "version": "1.0.1",
4
4
  "description": "A tiny React component to update the document title",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.js",