1.0.1 • Published 2 years ago

get-a-unique-id v1.0.1

Weekly downloads
-
License
ISC
Repository
github
Last release
2 years ago

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 🤘