State Management with React Context 3 exercises
Problem

Initialize the Cart with Server Data

Now that we have our Cart Context working, the next step is to get the initial data brought in. In this case, we want to see the two cart items on the initial page render from the server.

In order to do this, we need to get data from our React Server Components into our Client Components.

Chall

Loading exercise

Transcript

00:00 Now that we have our cart context all ready to go, we want to see that initial data, those two cart items on the initial page render from the server. So we want to make sure that our cart context is initialized properly to whatever we have on the server. Now, this is an interesting exercise because it shows us how to get

00:17 data from our React server components into our client components. If you have any questions or get stuck, be sure to check out that resource section associated with the video. Good luck.