To create a unique ID on the fly, you don't need additional libraries. With crypto.randomUUID() you will generate a string of 36 characters.
const id = crypto.randomUUID();
console.log(id) // 'f4f2d87a-e2e2-4fdc-90db-eabd48dcd754'
Go back to Shorts