@checkout-kit/react / CheckoutProvider
Variable: CheckoutProvider
ts
const CheckoutProvider: ({ engine, children }) => ReactElement;Puts one engine in scope. The engine is created by the host - usually once, at the composition root - because it owns state that must outlive any component: an intent in flight, a pending action, a payment that is mid-redirect.
Parameters
| Parameter | Type |
|---|---|
{ engine, children } | CheckoutProviderProps |
Returns
ReactElement