Skip to content
Discussion options

You must be logged in to vote

Yeah, createStore creates a vanilla store, which must be used with useStore.

Please use create from the default export.

import create from 'zustand'

I know people (and IDEs) get confused with new APIs.

Replies: 4 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by ShravanSunder
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants
Converted from issue

This discussion was converted from issue #1118 on July 20, 2022 11:42.