stream-chat-react
Version:
React components to create chat conversations or livestream style chat
10 lines • 461 B
TypeScript
export declare const stripUseIdWrappers: (id: string) => string;
/**
* Returns a stable, unique string id.
*
* On React 18+ this delegates to `React.useId()` (with the surrounding wrapper
* characters stripped so the value is safe to use anywhere an HTML id is expected)
* and is SSR-stable. On React 17, it falls back to a client-only id generated via `nanoid`.
*/
export declare const useStableId: () => string;
//# sourceMappingURL=useStableId.d.ts.map