Skip to content

Commit a4f03c7

Browse files
committed
tweak
1 parent ac09a39 commit a4f03c7

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/content/7/en/part7d.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ window.localStorage.removeItem('loggedBlogappUser')
147147
Extract this logic into a custom hook called <i>usePersistentUser</i>. The hook should read the initial value from <i>localStorage</i> on mount and keep the stored value in sync whenever it is updated or cleared. It should be usable like this:
148148
149149
```js
150-
const {user, setUser, removeUser} = usePersistentUser('loggedBlogappUser')
150+
const {user, setUser, removeUser} = usePersistentUser()
151151
```
152152
153153
Also take the [useField](/en/part7/more_about_react_hooks) hook introduced earlier in this part into use in the forms.

0 commit comments

Comments
 (0)