react-unique-id-generator
Version:
A lightweight, zero-dependency library for generating unique, sequential IDs in React — with hooks, custom prefix/suffix, SSR support, and stable CSS selector generation
13 lines • 574 B
TypeScript
export interface IdMetrics {
totalGenerated: number;
activeCount: number;
peakActiveCount: number;
}
export declare function getIdMetrics(): IdMetrics;
export declare function resetIdMetrics(): void;
export declare function getActiveIdCount(): number;
export declare function useTrackedUniqueId(localPrefix?: string): string;
export declare function useTrackedUniqueIds(count: number, localPrefix?: string): string[];
export declare function useIdMetrics(): IdMetrics;
export declare function cleanupInactiveIds(): void;
//# sourceMappingURL=performance.d.ts.map