Gate
function Gate<F>(__namedParameters): ReactElement;Defined in: src/react/index.tsx:289
Render children when the customer has feature (for amount units),
fallback otherwise. UX only — the server must still check.
Type Parameters
Section titled “Type Parameters”| Type Parameter | Default type |
|---|---|
F extends string |
string |
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
__namedParameters |
GateProps<F> |
Returns
Section titled “Returns”ReactElement