<NekutaStore>
function NekutaStore(props: {
nekuta?: Nekuta;
plugins?: NekutaPlugin[];
children?: ReactNode;
}): JSX.Element;
Root component for a Nekuta-powered app: creates a Nekuta instance and makes it available to useStore()/connectStore() below it in the tree, via React Context — in one step.
import { NekutaStore } from '@nekuta/core';
function App() {
return (
<NekutaStore>
<YourApp />
</NekutaStore>
);
}
Props
nekuta(optional) — an existingNekutainstance to use instead of creating one. Omit this to haveNekutaStorecreate and own one automatically (the common case for a plain client-rendered app). This is the escape hatch used internally by@nekuta/next'sNekutaAppProvider(Pages Router) andNekutaClientProvider(App Router), which each create a per-request instance server-side and hand it in — you generally don't need this prop unless you're wiring SSR by hand.plugins(optional) — plugins to install, applied only whenNekutaStorecreates its own instance (ignored ifnekutais passed — install plugins on that instance yourself before rendering).
NekutaContext
The underlying React.Context object NekutaStore writes to, exported for the rare case you need to read it directly (useContext(NekutaContext)) rather than through useNekuta().