biggora / device-uuid

Fast browser device uuid generation library. Written in pure JavaScript, no dependencies.
MIT License
186 stars 96 forks source link

DeviceUUID is not a constructor #12

Closed ilhamdoanggg closed 3 years ago

ilhamdoanggg commented 3 years ago

i using this library for my project in react js and how to using this library?

image

patotoma commented 3 years ago

Works for me. Make sure you import it correctly:

  import { DeviceUUID } from 'device-uuid';

  const deviceId = new DeviceUUID().get();