Update formatting

This commit is contained in:
Isabelle Viktoria Maciohsek
2022-01-30 19:41:17 +02:00
parent e7988c0065
commit 9661870d03
6 changed files with 9 additions and 9 deletions

View File

@ -6,8 +6,8 @@ firstSeen: 2021-09-27T05:00:00-04:00
Sets the title of the page
- Use `typeof` to determine if the `document` is defined or not.
- Use the `useRef()` hook to store the original title of the `document`, if defined.
- Use `typeof` to determine if the `Document` is defined or not.
- Use the `useRef()` hook to store the original title of the `Document`, if defined.
- Use the `useEffect()` hook to set `Document.title` to the passed value when the component mounts and clean up when unmounting.
```jsx