https://github.com/legitcode/id
a small utility for generating unique id's (useful for React)
https://github.com/legitcode/id
Last synced: 10 months ago
JSON representation
a small utility for generating unique id's (useful for React)
- Host: GitHub
- URL: https://github.com/legitcode/id
- Owner: Legitcode
- Created: 2015-09-17T22:40:50.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2015-09-17T22:51:49.000Z (over 10 years ago)
- Last Synced: 2025-03-04T09:19:48.652Z (11 months ago)
- Language: JavaScript
- Size: 121 KB
- Stars: 1
- Watchers: 5
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
##Legit ID
I was tired of making a function that generates a unique id for my React keys, so i made this simple thing
##Install
`npm install legit-id --save`
##example
~~~js
import 'legit-id'
'test'.id // -> test-1
'test'.id // -> test-2
'awesome'.id // -> awesome-3
~~~