ProNextJS

    Now it’s your turn! Try solving this exercise.

    Run locally (recommended)

    Code

    Start by cloning the project repository and follow instructions in the README.

    Or in browser

    Open on Gitpod
    Continue
    Loading...

    Transcript

    Zustand is a very popular state management library for my friend, Daishi Kato. It is a lot more streamlined than Redux, but it follows that same Redux unidirectional model, which makes it very popular. Of course, it's a curse and blessing for me because I have to say

    the word zustand all the time, and I think he just grabbed it from a grab bag of different words for the word state. Zustand in German means state. Okay, so what we're going to do

    is we're going to take the 03 cart context with initial state example and create 07 complete zustand and then implement the whole example in zustand. Now, I recommend using two different

    stores. Use that multi-store approach like we did with cart provider and with reviews provider. Use two different zustand state hooks to manage the state. Use one for the cart and then another for the reviews. If you have any questions about how to use zustand,

    please look in the resources associated with this video. Good luck.