This is examples of state share between client component and server component. There are two examples, query parameter and cookie implementation.
First, run the development server:
npm run dev
Open http://localhost:3000 with your browser to see the result.