import * as uuid from 'uuid/v4'; code example Example: uuid v4 react npm install uuid import { v4 as uuidv4 } from 'uuid';