@adyen/kyc-components
Version:
This guide assumes that you have already an account with Adyen. A legalEntity needs to be created, and you need to have a `legalEntityId` to instatiate a Component.
10 lines (9 loc) • 381 B
TypeScript
/**
* We can't use {@link import('preact/hooks').useId} because it doesn't guarantee uniqueness across
* different render trees. So multiple components mounted on the same page could have collisions.
*
* Therefore, we instead calculate a uuid and prepend a prefix.
*
* @param prefix a prefix to identify this usage
*/
export declare const useId: (prefix: string) => string;