You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
session-desktop/ts/components/session/tools/ComponentTools.tsx

9 lines
295 B
TypeScript

// This is a collection of tools which can be ued to simplify the esign and rendering process of your components.
export function generateID() {
// Generates a unique ID for your component
const buffer = new Uint32Array(10);
return window.crypto.getRandomValues(buffer)[0].toString();
}