react setState needs to call the previous state

this .setState( (prevState,props)=> {
     // The previous state can be called 
})

 

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325155490&siteId=291194637