Best way to generate initial ids? #432
matthew-dean
started this conversation in
General
Replies: 1 comment 1 reply
-
Nano ID is bad option for that simple case. You will use too much hardware resources for that. Just use |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
In HTML / CSS, identifiers can be alphanumeric but MUST start with
[A-Za-z]
. (Well, CSS identifiers can also have a dash prefix, but for the sake of argument, lets say this is aligned.I realize I can pass an alpha dictionary to nanoid to only use alpha characters, but could you add a feature of easily specifying this format, so that I can generate valid IDs for
<label for={id}>
<input id={id}>
pairings?Beta Was this translation helpful? Give feedback.
All reactions