React table- doesn't refresh content
let data= this.state.data;
const newData = data.map(d=>({...d, name:"Test"}));
this.setState({data: newData})
Use above code. Reason: React does not see mutation.
let data= this.state.data;
const newData = data.map(d=>({...d, name:"Test"}));
this.setState({data: newData})
Use above code. Reason: React does not see mutation.