mirror of
https://github.com/Prowlarr/Prowlarr.git
synced 2025-09-17 17:14:18 +02:00
New: Project Aphrodite
This commit is contained in:
7
frontend/src/Utilities/getUniqueElementId.js
Normal file
7
frontend/src/Utilities/getUniqueElementId.js
Normal file
@@ -0,0 +1,7 @@
|
||||
let i = 0;
|
||||
|
||||
// returns a HTML 4.0 compliant element IDs (http://stackoverflow.com/a/79022)
|
||||
|
||||
export default function getUniqueElementId() {
|
||||
return `id-${i++}`;
|
||||
}
|
Reference in New Issue
Block a user