App Router demo
Server Component root layout creates the Nekuta instance via getServerNekuta() and hands it to a Client Component boundary (NekutaClientProvider).
Counter store
Functional component — useStore()
count: 0 · doubleCount: 0
Class component — connectStore()
count: 0 · doubleCount: 0
Class component — static stores
count: 0 · doubleCount: 0
Todo store
remaining: 0 · completed: 0 · remaining + counter (combined across two stores): 0