State Management · Junior · Question 36 of 75

Does a Zustand store require a Provider component?

Explanation

That's one of Zustand's selling points. The flip side: a module-level store is shared by everything that imports it - on the server (SSR) you need a store per request, which the Next.js guide shows via Context.

Further reading

Problem with a question

State Management · Junior · question 36

Test yourself

Take the State Management · Junior quiz: questions and options are shuffled, and you get a review of your mistakes at the end.

Take this quiz