I am trying to create an array (todos) with the same objects in the state of my React Component. The object is supposed to consist of an active:false, value and its index.
I tried this:
this.state = {
todos:Array(15).fill({active:false},{idx:???})
}
What do I write as the index?