API reference@evolu/react › createEvoluBinding

function createEvoluBinding<S>(): ReactBinding<S>;

Defined in: local‑first/createEvoluBinding.tsx:113

Creates a React binding for a specific EvoluSchema.

The created binding contains the context component and all hooks needed by React components using an Evolu instance created from that schema.

The EvoluSchema type argument configures the binding without passing the schema at runtime.

Example

const { EvoluContext, useEvolu, useQuery } =
  createEvoluBinding<typeof AppSchema>();