Skip to content

createEntitlementsReact

function createEntitlementsReact<C>(): TypedEntitlementsReact<C>;

Defined in: src/react/index.tsx:609

Catalog-typed hooks and components: feature keys autocomplete, value features return their declared type, UsageMeter only takes numeric features, plan keys are checked.

import type { catalog } from "./catalog";
export const { Gate, useEntitlement, UsageMeter } = createEntitlementsReact<typeof catalog>();
Type Parameter
C extends AnyCatalog

TypedEntitlementsReact<C>