API reference@evolu/react-nativeweb › createEvoluBinding

const createEvoluBinding: <S>() => ReactBinding<S>;

Defined in: react/dist/src/local-first/createEvoluBinding.d.ts:71

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>();