<- Back
Nesting
Revalidate
Global State
Forms
Suspense
React Query
Server Functions
Global State
To share a state between client components in different parts of the component tree, you can create a provider with React Context and wrap your components with it, or a Zustand store for a simpler implementation.
ThemeProvider
Server component
White
Yellow
Server component
Client component: yellow