- Install
node-uuid
package
npm install --save node-uuid
Or yarn
yarn add node-uuid
- Import
v4
function
import { v4 } from 'node-uuid';
- You can use it just by calling
{id: v4()}
node-uuid
packagenpm install --save node-uuid
Or yarn
yarn add node-uuid
v4
functionimport { v4 } from 'node-uuid';
{id: v4()}