get-a-unique-id

1.0.1 • Public • Published

Get a Unique Id

The one stop solution to get a uniqe id for your use case. Play with it and integrate for your particular use case. Good luck!

Use case example in a React Application

import React, { useState, useEffect } from "react";
import getUID from "get-a-unique-id";

function App() {
    const [uniqueId, setUniqueId] = useState("");

    useEffect(() => {
        const result = getUID();
        setUniqueId(result);
    }, []);

    return (
        <>
            <p>{uniqueId}</p>
        </>
    );
}

Thanks to the wonderful people who shared their knwowledge


3PointDev Signing Out 🤘


Readme

Keywords

Package Sidebar

Install

npm i get-a-unique-id

Weekly Downloads

0

Version

1.0.1

License

ISC

Unpacked Size

1.94 kB

Total Files

3

Last publish

Collaborators

  • 3pointdev