Skip to content

Commit f78c17e

Browse files
authored
Update README.md
1 parent aee87ba commit f78c17e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ UID
88

99
Generate UID for an item, Renderless UID containers, SSR-friendly UID generation
1010

11+
Example - https://codesandbox.io/s/kkmwr6vv47
12+
1113
## API
1214
- `uid(item, [index])` - generates UID for an object(function and so on). Quite usable for React `key` property.
1315
`item` should be an object, but could be anything. In case it is not an "object", and might have non-unique value - you have to specify second argument - `index`

0 commit comments

Comments
 (0)