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 Parameters
Section titled “Type Parameters”| Type Parameter |
|---|
C extends AnyCatalog |