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

105
Views
Adding Material-UI Select with generated number range

I am trying to create a select with material-ui that give a range of number from 0 - 20,000,000 in 25,000 increments. I was able to achieve this with a for loop

  for (let price = 0; price <= 20000000; price = price + 25000) {
    priceOptions.push({ id: price, title: `$${price.toLocaleString()}` });
  }

I feel like this is not the best way to go about it as it takes a 2-3 seconds when you click on the dropdown for to display the options.

If anyone has an idea of how to speed this up it would be greatly appreciated.

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

As NearHuscarl mentioned in the comments:

You can integrate Select component with some virtualized library like react-virtualized. Personally, I'd use the Autocomplete component and tell the user to filter it out.

about 4 years ago · Juan Pablo Isaza Report
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!