State Management · Junior · Question 33 of 75

What is Zustand?

Explanation

const useBear = create(set => ({ bears: 0, add: () => set(s => ({ bears: s.bears + 1 })) })) - and any component calls useBear(...). No <Provider> is needed; the store lives in a module.

Further reading

Problem with a question

State Management · Junior · question 33

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