deleteRecord(id) {
     axios.delete("http://localhost:5000/" + id).then((response) => {
      console.log(response.data);
    });

    this.setState({
      record: this.state.records.filter((el) => el._id !== id),
    });
  }
// This method will delete a record based on the method
This method will delete a record based on the method
This method will delete a record based on the method
deleteRecord(id) {
     axios.delete("http://localhost:5000/" + id).then((response) => {
      console.log(response.data);
    });
    this.setState({
      record: this.state.records.filter((el) => el._id !== id),
    });
  }
deleteRecord ( id ) { axios . delete ( "http://localhost:5000/" + id ) . then ( ( response ) => { console . log ( response . data ) ; } ) ; this . setState ( { record : this . state . records . filter ( ( el ) => el . _id !== id ) , } ) ; }
This method will delete a record based on the method
This method will delete a record based on the method