i am trying to save some data in object's object, but its not working and its throwing me error.
This setState is not working.
I want to save some data in title and otherData.
this.state = {
data:{
title:" ",
otherData:" "
},
size: "Medium",
posterDiv: "700px",
url: ArticlePoster,
file: " ",
base64: " "
}
this.setSate({data.title:wantToSaveThisData})
but this setState is not working.
can anyone explain why my setState is not working
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…