DEV Community

Discussion on: uuid in JavaScript.

Collapse
 
gerreth profile image
Gerret Halberstadt

If my component is related to a database object, I usually use its ID from there.

If you need to create a unique ID on the fly, I'd suggest npmjs.com/package/uuid