JSFiddle - React, Tailwind, and code Playground
JavaScript
const months = new Array(12)
.fill(1)
.map((_, index) => {
return new Date(new Date().setMonth(index))
.toLocaleString('ru', { month: 'long'})
});
const months = new Array(12)
.fill(1)
.map((_, index) => {
return new Date(new Date().setMonth(index))
.toLocaleString('ru', { month: 'long'})
});