1.0.1 ā¢ Published 4 years ago
use-unique-id v1.0.1
useUniqueId
useUniqueId is a react hook that generates unique ids with a human readable prefix. You can assign unique ids using a react component's name as the prefix allowing you to see the component's name in a browser's developer tools without opening react dev tools.
Install
npm install use-unique-id
OR
yarn add use-unique-id
Usage
useUniqueId('DropDownInput')
Before
using a random unique id generator
After
using use-unique-id
use-unique-id uses uuid/v4 under the hood generating reliable universally unique identifiers (UUIDs).
š made with create-react-hook.
License
MIT Ā© HomeX Labs