Skip to content

ERROR: regarding useLocalStorageState - is not a function or its return value is not iterable #729

Answered by Kheirah
NicoleHoerner asked this question in Web
Discussion options

You must be logged in to vote

The import is a default, not a named. The error pops up because there is no named export in use-local-storage-state called useLocalStorageState . Drop the braces like this and it'll work.

import useLocalStorageState from 'use-local-storage-state'

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by NicoleHoerner
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Web
Labels
None yet
2 participants