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