react-id-generator
react-id-generator copied to clipboard
Simple and universal HTML-id generator for React.
React 18 got a new id api that essentially replaces this library however, to help with migration, it would be nice if this library would fall back to using react's...
Does this have the option of having multiple sequence streams, for example nextId('localid1-', stream1) = localId1-1 nextId('localid1-', stream1) = localId1-2 nextId('localid2-', stream2) = localId2-1 nextId('localid2-', stream2) = localId2-2 nextId('localid1-', stream1)...
This is similar to #1, but works in a single DOM render and doesn't require streaming. Because the iterator is trapped within the scope of the specific class, it doesn't...
The id is implemented as a module scoped var, and if 2 renders are going on simultaneously due to streaming rendering halting, they will influence each other. The safe way...
Bumps [minimatch](https://github.com/isaacs/minimatch) from 3.0.4 to 3.1.2. Commits 699c459 3.1.2 2f2b5ff fix: trim pattern 25d7c0d 3.1.1 55dda29 fix: treat nocase:true as always having magic 5e1fb8d 3.1.0 f8145c5 Add 'allowWindowsEscape' option 570e8b1...
Hi, thanks for your work on this library, it's really handy. The return type of `useId` is `string[]` https://github.com/Tomekmularczyk/react-id-generator/blob/97e5bf6d8df59aa21363ea314ca612d22966cb50/src/useId.ts#L20 This is accurate, but it would be more helpful if it...