JSFiddle - React, Tailwind, and code Playground

JavaScript

this.today = new Date();
this.datepickerArray = [];

 for(var i = 1; i <= 3; i++){
this.today.setDate(this.today.getDate() + 1);
this.datepickerArray.push(this.today.getFullYear()+'-'+(this.today.getMonth()+1)+'-'+this.today.getDate())

    }
    
    console.log(this.datepickerArray);