• Provides the engine and an optional MVU runner to its subtree.

    Type Parameters

    • Msg = unknown

      The application message union accepted by update.

    Parameters

    Returns Element

    A React element wrapping children in CauslContext.Provider.

    The provider does not own the graph — host code constructs and disposes it; the provider only routes the handle. The context value is wrapped in useMemo so that consumer hooks do not see a fresh object reference unless graph or update actually change.

    <CauslProvider graph={graph} update={update}>
    <App />
    </CauslProvider>