ERROR: regarding useLocalStorageState - is not a function or its return value is not iterable #729
Answered
by
Kheirah
NicoleHoerner
asked this question in
Web
-
Beta Was this translation helpful? Give feedback.
Answered by
Kheirah
Sep 13, 2023
Replies: 1 comment
-
The import is a default, not a named. The error pops up because there is no named export in import useLocalStorageState from 'use-local-storage-state' |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
NicoleHoerner
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The import is a default, not a named. The error pops up because there is no named export in
use-local-storage-state
calleduseLocalStorageState
. Drop the braces like this and it'll work.