Next.js Discord

Discord Forum

State management in NextJS

Answered
Bigheaded ant posted this in #help-forum
Open in Discord
Bigheaded antOP
How can we use some state management in NextJS? is it by using some library seperately or NextJS has already provided it?
Answered by Luis
You can still use the same libraries you would use with React alone: Zustand, Jotai, Xstate, Redux..
View full answer

5 Replies

Samoyed
Typically you would use useState and useEffect provided by React.
You can still use the same libraries you would use with React alone: Zustand, Jotai, Xstate, Redux..
Answer
American Chinchilla
React query too
@American Chinchilla React query too
Yes for async server state is great