You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+2Lines changed: 2 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -8,6 +8,8 @@ UID
8
8
9
9
Generate UID for an item, Renderless UID containers, SSR-friendly UID generation
10
10
11
+
Example - https://codesandbox.io/s/kkmwr6vv47
12
+
11
13
## API
12
14
-`uid(item, [index])` - generates UID for an object(function and so on). Quite usable for React `key` property.
13
15
`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