A
A
Alexander2021-04-30 18:20:31
React
Alexander, 2021-04-30 18:20:31

What is the best way to implement a birth date picker list?

how can I implement a birth date selection list, that is, where to get data from and where to store it?
maybe there is some ready-made solution, because creating a loop that creates an array with days and years is not the best option, as for me

const years = []
  for (let index = 2021; index >= 1901; index--) {
    years.push(index)
  }

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question