You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
8 lines
163 B
8 lines
163 B
7 years ago
|
let i = 0;
|
||
|
|
||
|
// returns a HTML 4.0 compliant element IDs (http://stackoverflow.com/a/79022)
|
||
|
|
||
|
export default function getUniqueElementId() {
|
||
|
return `id-${i++}`;
|
||
|
}
|