← home

Pages Router demo

getServerSideProps is wrapped with withNekutaSSR(), which serializes state onto pageProps.__NEKUTA_STATE__ for _app.tsx's NekutaAppProvider to hydrate.

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

    Activity log — $subscribe() / $onAction()