Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

249
Views
Generating a unique className from a uuid?

50bdc59e-394c-449b-9808-5a912aa9b202, this is a uuid I tried to use as a className, but it didn't work, so I tried uuid.slice(20) and it worked, I don't know what are the restrictions for classNames, but it's not the dash, because upon doing slice(20) I noticed there was still a dash in the result, but now I am wondering if there's a short method for generating a unique className from a uuid. Now, if there's no solution that's robust, I thought about splitting the uuid into two and inject a className prefix and suffix, but I want to avoid that at all cost.

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!