reactjs – react table: update the table after receiving new data

I want to update my reaction table after receiving new data. I was hoping to activate this when I change status, however, it doesn't work. The status and update function are shown below.

this.state = {
        switchListSelected: (),
        switchListData: (),
        interfaceStatusData: (),
        interfaceErrorsData: ()}

updateParentState(data, element){       
    this.setState(prevState => {
        return prevState(element).push(data)}}