createUniqueId

createUniqueId

1
function createUniqueId(): string;

A universal id generator that is stable across server/browser.

1
const id = createUniqueId();

Note: on the server this only works under hydratable components.

Комментарии