Zustand Example
I used Zustand with React Context and Next.js to create this very simple example. It renders two client components from within a server component, and uses Zustand and React Context to give both client components access to a shared state, i.e. the background colour.
Client Component
Client Component
Server Component