this is my setState in APP.js
this.state = {
todos:[
{id:0, content:'Welcome Sir!',isCompleted:true},
]
}
}
here I fetched the data from local srorage
this.documentData = JSON.parse(localStorage.getItem('todos'));
}
I fetched the data from localstorage but confused how to store it into State
the data fetch in format
{content: "dd",id: 0.10599785413372431,isCompleted: true}
note that this is a todo app so every time we create a task means we create an object